Organization Themes

Roll back as a new immutable revision

post/themes/{id}/rollback

Request

  • Base URL: https://app.openpo.st/api/v1
  • URL: https://app.openpo.st/api/v1/themes/{id}/rollback
  • Auth: one of:
    • HTTP bearer
    • API key in cookie openpost_session

Path parameters

idstring required

Organization theme ID

Request body

$schemastring uri

A URL to the JSON Schema for this object.

expected_draft_revisioninteger required

Draft revision loaded before rollback

expected_published_revisioninteger required

Published head loaded before rollback

organization_idstring required

Organization ID

source_revisioninteger required

Prior published revision to copy into a new head revision

Example request

{
  "$schema": "https://example.com/api/v1/schemas/RollbackThemeInputBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

published_atstring date-time required
published_bystring required
revisioninteger required
source_revisioninteger
theme_idstring required

Example response

{
  "$schema": "https://example.com/api/v1/schemas/PublishedRevision.json"
}

Changes

No recorded changes to this operation across all 1 revision of this API.