Skip to content
中文

Limits and errors

This page lists the limits of the Studio endpoints (/studio/v1) and, for each error code, its cause, what to do and whether to retry. An error response is {"error": {"code", "message", "doc_url"}}; the message text may be in Chinese, so branch on code and never parse the text.

Limits

LimitValueNotes
Items per list page1 to 100The page_size parameter; keep following next_page_token while an answer carries it. The draft list is not paged
Review roundsmax_rounds in the work’s review settingsChanged by a person in the organization
Draft property lengthDepends on the genre, for example blog_article allows a title of 40 characters, an SEO title of 60 and an SEO description of 120Read props in GET /studio/v1/genres/{genre}
Total lengthDepends on the genre, for example 2000 to 5000 characters for blog_articleA check (body_total_chars): a shortfall appears in the to-dos and does not refuse the write
One body writeCapped; over it returns BODY_TOO_LARGESplit the write into block operations
Idempotency keyrequest_id on creating a work, a draft or a renditionResending the same value returns the first result

Error codes

CodeHTTPCauseWhat to doRetry
INVALID_PARAMS400A field is missing, malformed or not allowed (for example export without format)Fix the named field and send againNo
SLUG_TAKEN409The slug is used by another work in the organization, including a previously renamed onePick another slug, or omit it and let one be derived from the titleNo
DRAFT_KEY_TAKEN409Another draft of the work already uses that keyPick another key, or omit it and let one be derived from the genreNo
GENRE_NOT_FOUND404The key names no genre in the catalogRead GET /studio/v1/genres and pass one of its keys exactlyNo
PLATFORM_NOT_FOUND404The platform key does not exist or lacks its version suffixRead GET /studio/v1/platforms and pass a versioned keyNo
PLATFORM_GENRE_MISMATCH400The genre cannot produce that platformChoose one from the platform list in the messageNo
PLATFORM_NOT_AVAILABLE400The platform is not open yet, such as publishing to an accountUse an export platform such as markdown@1No
WORK_NOT_FOUND, DRAFT_NOT_FOUND, UNIT_NOT_FOUND, RENDITION_NOT_FOUND404The work, draft, unit or rendition in the path does not exist or belongs to another organization; details.suggestions carries up to three near matchesUse the slug, key, number or rnd_ id a list returns, or call GET /studio/v1/works:resolve?ref=… firstNo
UNIT_KIND_NOT_ALLOWED4xxThe genre does not allow that kind at that levelRead kinds and top_kinds in GET /studio/v1/genres/{genre}No
BLOCK_TYPE_NOT_ALLOWED4xxThe genre does not allow that block typeUse a type from the genre’s blocks listNo
REVISION_CONFLICT409The expected_revision you sent is out of date and nothing was written; also returned when one rendition is rendered or exported twice at onceRe-read, merge the other change into yours and send again with the new revision; for a rendition conflict retry after a few secondsYes, after re-reading
UNIT_IS_FINAL4xxThe unit is final and the write would change its intent, body or statusSend confirm_final_edit only when a person asked for that changeNo
BODY_TOO_LARGE413The submitted text exceeds the per-write body limitSplit the write into block operations on smaller parts (/units/{unit}/blocks:patch)No
RENDITION_NOT_RENDERED409The rendition has not finished rendering, or the requested part has no file (markdown@1 and text@1 produce none)Call the render operation first; read parts[].text for text renditionsNo
RENDITION_STALE409The draft changed after the last renderCall the render operation, then exportNo
RENDITION_INVALID409Rendering found error-level issuesFix the draft as issues says, render again, then exportNo
DRAFT_NOT_READY409The draft sent for review still has units without a body or fails a hard checkFinish the bodies and fix the checks, then send againNo
REVIEW_IN_PROGRESS, REVIEW_ROUND_LIMIT, NO_REVIEWERS409A round is already running; the work has used its max_rounds; the reviewer roster has nobody of the requested kindWait for the round to decide; a person in the organization changes the settings or adds a reviewerNo
PERMISSION_DENIED403An agent called an operation reserved for people in the organization: the reviewer roster, review settings or cancelling a roundReport what needs to change to the person who owns the workNo

Every write answers with checks, the results for what you just wrote: a check with ok: false and hard: true blocks sending for review, while hard: false is only a warning.

Quickstart → · Export a rendition →