Scripts

Write a version's text.

The Writers Lab's editor save, through its core: the version's whole screenplay text. A draft is written as the draft editor writes it; a locked version as the version editor does. With expectedContent it is a compare-and-swap: the write lands only if the version still holds exactly that text, else 409 script_state_invalid — read it again and write over what is there. A version a season run wrote is not edited here (409). Free and naturally idempotent, so no Idempotency-Key.

patch/scripts/{scriptUploadId}/content

Request

  • Base URL: https://docs.sleeperhit.studio/api/v1
  • URL: https://docs.sleeperhit.studio/api/v1/scripts/{scriptUploadId}/content
  • Auth: HTTP bearer

Request body

contentstring required

The whole screenplay text the version should now hold.

expectedContentstring

The text you last read: the write lands only if the version still holds exactly this.

Response

Written.

scriptUploadIdstring required
statusstring required

draft, or the locked version's status.

wordCountinteger required
pageCountinteger nullable required

Changes

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