LayoutService
Publish Layout
Publish a layout for discovery.
Request
curl --request POST \ \
--url 'https://api.testnet.polyester.com/v1/layouts/published' \
--header 'Accept: */*' \
--header 'X-API-KEY-ID: YOUR_API_KEY_ID' \
--header 'X-API-TIMESTAMP: YOUR_API_TIMESTAMP' \
--header 'X-API-SIGNATURE: YOUR_API_SIGNATURE' \
--header 'Content-Type: application/json' \
--data '{
"changelog": "Initial public release.",
"description": "Example configuration for the API playground.",
"isListed": false,
"layoutId": "1",
"tags": [
"spot"
],
"title": "My Trading Board"
}'Responses
{
"template": {
"description": "Example configuration for the API playground.",
"isListed": false,
"latestVersion": 1,
"publishedAtMs": "1",
"tags": [
"spot"
],
"template": {
"ownerId": "1",
"templateId": "1"
},
"title": "My Trading Board",
"updatedAtMs": "1"
},
"version": 1
}Optional release notes for the new immutable version.
Public description shown with the template.
True when the template should appear in discovery listings.
Saved layout identifier to publish.
Public tags used for grouping or filtering.
Public display title.
Viewer that owns the template.
1Template identifier unique within the owner.
1Public display title.
My Trading BoardPublic description shown with the template.
Example configuration for the API playground.Public tags used for grouping or filtering.
["spot"]True when the template appears in discovery listings.
falseLatest immutable version number for this template.
1Initial publication time in milliseconds since epoch (UTC).
1Last metadata update time in milliseconds since epoch (UTC).
1Immutable version number created by this publish operation.
1| 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. |