LayoutService
List Layout Template Versions
List immutable versions for a layout template.
Method
GET
Path
/v1/layouts/templates/{owner_id}/{template_id}/versions
Visibility
Public endpoint
GET
/v1/layouts/templates/{owner_id}/{template_id}/versions Request
Testnet
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/layouts/templates/1/1/versions?limit=100&pageToken=eyJvZmZzZXQiOjEwMH0' \ --header 'Accept: */*'
Responses
{
"nextPageToken": "eyJvZmZzZXQiOjIwMH0",
"versions": [
{
"changelog": "Initial public release.",
"createdAtMs": "1",
"version": 1
}
]
} owner_id string (int64)
Viewer that owns the template.
template_id string (int64)
Template identifier.
limit integer
Maximum number of versions to return. Defaults to 100 when omitted; maximum is 500.
pageToken string
Opaque keyset cursor from a previous response. The cursor is exclusive and bound to owner, template, and newest-version sort order.
3 fields
version integer (int32)
Immutable template version number.
Example
1 changelog string
Optional release notes for this version.
Example
Initial public release. createdAtMs string (fixed64)
Version creation time in milliseconds since epoch (UTC).
Example
1 nextPageToken string
Opaque cursor for the next page. Empty when no more results exist.
Example
eyJvZmZzZXQiOjIwMH0| Key | Status | Error | When |
|---|---|---|---|
| unauthenticated | 401 | Unauthenticated | Authentication required. |
| permission-denied | 403 | Permission Denied | Permission denied. |
| invalid-argument | 400 | Invalid Argument | Invalid argument. |
| not-found | 404 | Not Found | Not found. |
| unavailable | 503 | Unavailable | Service unavailable. |