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

Path parameters
Parameter
project_idstring (uuid)pathrequired

Headers

Headers
Parameter
Idempotency-Keystringheaderrequired

Request body

Request body
Parameter
prompt_idsstring (uuid)[]bodyrequired

Response 200: PromptBulkResult