Prompts
Delete prompts
Deletes up to 500 of the project’s prompts in one change. Every id must be a prompt of the project, or nothing is deleted. Answers already recorded stay in past audits. Returns how many prompts were deleted. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.
POST/v1/projects/{project_id}/prompts/bulk-delete
Needs the prompts:write scope
Deletes up to 500 of the project’s prompts in one change. Every id must be a prompt of the project, or nothing is deleted. Answers already recorded stay in past audits. Returns how many prompts were deleted. 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 |
Response 200: PromptBulkResult