Prompts

File prompts under a topic

Files up to 500 of the project’s prompts under one topic in one change; topic_id null takes them out of every topic. Past runs keep the topic they froze. Every id must be a prompt of the project, or nothing changes, and an active prompt that does not fit the topic refuses the whole change. Returns how many prompts were filed. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

POST/v1/projects/{project_id}/prompts/bulk-topic

Needs the prompts:write scope

Files up to 500 of the project’s prompts under one topic in one change; topic_id null takes them out of every topic. Past runs keep the topic they froze. Every id must be a prompt of the project, or nothing changes, and an active prompt that does not fit the topic refuses the whole change. Returns how many prompts were filed. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

Path parameters

Path parameters
Parameter
project_idstring (uuid)pathrequired

Headers

Headers
Parameter
Idempotency-Keystringheaderrequired

Request body

Request body
Parameter
prompt_idsstring (uuid)[]bodyrequired
topic_idstring (uuid) | nullbodyrequired

Response 200: PromptBulkResult