API referenceLibrary
Publish Theme
Publish a draft theme, so scenes can use it: create_scene,
update_scene and the blueprint step refuse a draft (409 theme_draft).
New themes — created, imported or generated — start as drafts. Publishing
checks nothing else, cannot be undone and leaves the content hash as it
is; a published theme answers as it is. A theme in another project is a
404. Requires the write scope.
Authorization
apiKey AuthorizationBearer <token>
First-party API key (sbk_live_…), presented as a Bearer token.
In: header
Path Parameters
theme_id*Theme Id
Format
uuidResponse Body
application/json
application/problem+json
curl -X POST "https://example.com/v1/themes/497f6eca-6276-4993-bfeb-53cbbbba6f08/publish"{ "name": "string", "description": "string", "tags": [], "system_tags": [], "metadata": {}, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9", "thumbnail_url": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "world": { "constraints": { "horizontal": "grid", "vertical": "quantized" }, "unit_scale": 1, "padding": 0, "min_path_width": 1, "grid": { "cell_size": 1, "snap": "cell-center" }, "levels": { "height": 1, "count": 1 }, "heights": { "range": [ 0, 0 ], "max_step": 1 } }, "scene_parameters": {}, "designs": [], "status": "draft", "parameters": {}, "design_ids": [], "design_count": 0}