Scripts

Change a script's title, slug, logline, format, genre or season.

The Writers Lab's edit dialog and season picker, through their core. Partial: only the fields sent change. title renames the latest version too; slug is refused when reserved or already one of yours; logline is the writer's own (the one Slug and the Writers Lab both read — coverage keeps its own reading); genre is free text up to 80 characters; seasonNumber moves an episode into that season of its project, adding the season to the project's list when it is new (a script in no project is refused). A bad value is refused with 400 validation_failed, the same sentence the Writers Lab shows. Free and naturally idempotent, so no Idempotency-Key.

patch/scripts/{scriptUploadId}

Request

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

Request body

titlestring

Renames the latest version too.

slugstring

Its URL slug; punctuation becomes dashes. Refused when reserved or already one of yours.

loglinestring nullable

The writer's one-sentence logline; null or blank clears it.

mediaType'film' | 'tv' | 'null' nullable

Null clears it.

genrestring nullable

Free text, in the writer's words (suggestions: Drama, Comedy, Thriller, Horror, Sci-Fi, Action, Romance, Crime, Fantasy, Animation, Musical, Mystery, Western, Other; a suggestion in any case is stored in its casing). Null or blank clears it.

seasonNumberinteger

Moves an episode into that season of its project, adding the season when it is new. A script in no project is refused.

Response

The script as it now stands.

Changes

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