drafts

Rebase a draft

Update the draft’s base after the live version changes, keeping the draft’s definition. A further live-version change returns head_moved.

post/api/v1/agents/{agent_id}/draft/rebase

Request

  • Base URL: https://api.cumuluslabs.io
  • URL: https://api.cumuluslabs.io/api/v1/agents/{agent_id}/draft/rebase
  • Auth: HTTP bearer

Path parameters

agent_idstring required

Request body

draft_idstring uuid required
head_versioninteger required

Response

Rebase the draft onto the live version after a head change (keeps its definition; 409 head_moved when live moved again)

draft_idstring uuid required
revisioninteger required
base_versioninteger nullable required
published_revisioninteger nullable required
updated_atstring date-time required

Changes

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