v2 - Contents
Versions

Add Version

Make an uploaded video the new current version of this piece.

Upload the file first (POST /v2/media/upload/request, PUT, then POST /v2/media/{media_id}/upload/complete), then send its media_id here. Earlier versions stay listed and playable. Refused with 409 (reason: piece_is_final) once the piece has been published. Any launch waiting for, or holding, an owner approval is sent back for approval.

Access: CONTENT_EDIT on the piece's workspace (whoever can edit the piece).

post/v2/contents/{content_id}/versions

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

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

media_idstring required

A ready video in this piece's workspace, used by no other piece

notestring nullable

What changed in this version

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.