EndpointsCoworlds

Save store page draft

PUT/v2/coworlds/{coworld_name}/store-page/draft

Creates the store page or adds a draft revision when the supplied base is current. A stale base returns 409; retrying the same idempotency key returns the original result.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer token issued by Softmax

In: header

Path Parameters

coworld_name*Coworld Name

Coworld name.

Request Body

application/json

content*

Content to save as a new draft revision.

base_revision_id?|

Revision being replaced, or null when creating the page's first revision.

idempotency_key*Idempotency Key

Key that makes repeated saves return the same revision.

Length1 <= length <= 200
note?|

Note explaining the edit.

curl -X PUT "https://softmax.com/api/observatory/v2/coworlds/string/store-page/draft" \  -H "Content-Type: application/json" \  -d '{    "content": {},    "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"    }  ]}