EndpointsCoworlds

Revert store page to an older revision

POST/v2/coworlds/{coworld_name}/store-page/revert

Creates a new draft revision copying an older revision's content, then applies the same publish/review-gate logic as Publish.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer token issued by Softmax

In: header

Path Parameters

coworld_name*Coworld Name

Coworld name.

Request Body

application/json

revision_id*Revision Id

Historical revision to restore.

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 reverts return the same result.

Length1 <= length <= 200
curl -X POST "https://softmax.com/api/observatory/v2/coworlds/string/store-page/revert" \  -H "Content-Type: application/json" \  -d '{    "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"    }  ]}