Prompts

Review prompt candidates

Accepts or rejects candidate prompts by id. Accepted candidates become prompts of the set. 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}/candidates/review

Needs the prompts:write scope

Accepts or rejects candidate prompts by id. Accepted candidates become prompts of the set. 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
ParameterDescription
accept_idsstring (uuid)[]body
Default[]
reject_idsstring (uuid)[]body
Default[]

Response 200: PromptCandidateReviewResponse