v2 - Contents
Versions

Decide Version Approval

Approve a version, or ask for changes to it, with an optional note.

Every decision is kept in the version's history (deciding the same thing twice is two entries); the latest is the version's state. A record, not a gate: it publishes nothing and no launch waits on it. Allowed on a published piece. The piece's creator and the version's uploader are told, and the workspace's history shows it.

Access: CONTENT_REVIEW on the piece's workspace (a reviewer, a team owner or admin, a workspace admin, the workspace owner). Agent keys also need the opt-in approvals:decide scope. 404 for a version the piece lacks.

post/v2/contents/{content_id}/versions/{number}/approval

Request

  • Base URL
    https://api.jubjubapp.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

numberinteger required
content_idstring required

Headers

Authorizationstring
X-JubJub-Service-Keystring
X-JubJub-Agent-Keystring
X-JubJub-Platform-Keystring
Originstring
Refererstring
X-JubJub-Trial-Tokenstring

Request body

decision'approved' | 'changes_requested' required

approved, or changes_requested

notestring nullable

Optional; what to change, or why it is good

Response

Successful Response

content_idstring required
current_versioninteger required
version_countinteger required
finalboolean required
final_reasonstring nullable
approval_statusstring
can_reviewboolean
has_reviewersboolean

Changes

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