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
| Parameter |
|---|
project_id |
Headers
| Parameter |
|---|
Idempotency-Key |
Request body
| Parameter |
|---|
prompt_ids |
topic_id |
Response 200: PromptBulkResult