Organization Themes

Publish an immutable theme revision

Advances existing Organization and Workspace references for this theme family atomically.

post/themes/{id}/publish

Request

  • Base URL: https://app.openpo.st/api/v1
  • URL: https://app.openpo.st/api/v1/themes/{id}/publish
  • 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 being published

expected_published_revisioninteger required

Published head loaded by the editor; zero publishes the first revision

organization_idstring required

Organization ID

Example request

{
  "$schema": "https://example.com/api/v1/schemas/PublishThemeInputBody.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.