Update Prompt Status
Changed onPauses or resumes a prompt. Requires the configure scope.
Pausing (status: paused) stops collection for the prompt and releases its variants from the organization's prompt pool. The prompt keeps its configuration and all of its collected history, and stays readable through GET /{brand_id}/prompts?status=paused.
Resuming (status: active) restores the exact deployment the prompt had when it was paused and re-checks the prompt pool, so it can return 429 quota_exceeded when the organization no longer has room for the prompt's variants.
Both transitions are idempotent: a prompt already in the requested status returns 200 with the prompt, unchanged.
A transition the prompt's status does not allow (resuming an archived prompt, resuming one whose persona is archived) returns 409 with a type naming the reason. To archive a prompt, use DELETE /{brand_id}/prompts/{prompt_id} instead.
Request
- Base URLhttps://api.scrunchai.com/v1
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique identifier for the brand
The unique identifier for the prompt to update
Request body
Response
The prompt after the transition. Also returned when the prompt was already in the requested status.
Changes
- info
endpoint added
- info