EndpointsCoworlds
Publish store page draft
POST
/v2/coworlds/{coworld_name}/store-page/publishPublishes the current revision. A coworld's first-ever publish goes to pending_review instead of going live; every publish after that goes live directly.
Authorization
BearerAuth AuthorizationBearer <token>
Bearer token issued by Softmax
In: header
Path Parameters
coworld_name*Coworld Name
Coworld name.
Request Body
application/json
base_revision_id*Base Revision Id
Revision being published.
Match
^spr_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$idempotency_key*Idempotency Key
Key that makes repeated publishes return the same result.
Length
1 <= length <= 200curl -X POST "https://softmax.com/api/observatory/v2/coworlds/string/store-page/publish" \ -H "Content-Type: application/json" \ -d '{ "base_revision_id": "string", "idempotency_key": "string" }'{ "content": { "blurb": "string", "cta_label": "string", "closing_line": "string", "play_beats": [ { "title": "string", "body": "string" }, { "title": "string", "body": "string" }, { "title": "string", "body": "string" } ], "icon": "string", "hero_media": [ { "kind": "image", "src": "string", "poster": "string", "alt": "string", "order": 0 } ], "show_live_replay": true, "links": [ { "label": "string", "url": "string", "kind": "website" } ] }, "page": { "current_revision_id": "string", "published_revision_id": "string" }, "revision": { "id": "string", "version": 0, "status": "draft", "author_user_id": "string", "note": "string", "created_at": "2019-08-24T14:15:22Z", "approved_by_user_id": "string", "rejected_by_user_id": "string" }, "lint_warnings": [ { "field": "string", "rule": "string", "message": "string" } ]}