Prompts

Activate or archive prompts

Sets the status of up to 500 prompts of one prompt set to active or archived in one change, and returns the updated set. Every id must be a prompt of that set, or nothing changes. Activation is refused when a prompt does not fit its topic or the plan has no prompt slots for it. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

POST/v1/projects/{project_id}/prompt-sets/{prompt_set_id}/prompts/bulk-status

Needs the prompts:write scope

Sets the status of up to 500 prompts of one prompt set to active or archived in one change, and returns the updated set. Every id must be a prompt of that set, or nothing changes. Activation is refused when a prompt does not fit its topic or the plan has no prompt slots for it. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

Path parameters

Path parameters
Parameter
project_idstring (uuid)pathrequired
prompt_set_idstring (uuid)pathrequired

Headers

Headers
Parameter
Idempotency-Keystringheaderrequired

Request body

Request body
Parameter
prompt_idsstring (uuid)[]bodyrequired
statusPromptStatusbodyrequired

Response 200: PromptSet