Audits

Create an audit schedule

Creates a schedule that launches audits of a prompt set on a cadence and returns it. Send an Idempotency-Key header so a retry within 24 hours never runs it twice.

POST/v1/projects/{project_id}/audit-schedules

Needs the schedules:write scope

Creates a schedule that launches audits of a prompt set on a cadence and returns it. 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
ParameterDescription
prompt_set_idstring (uuid)bodyrequired
audit_scopestringbody
One ofbrandcommerceDefault"brand"
cadenceAuditScheduleCadencebodyrequired
interval_minutesinteger | nullbody
Defaultnull
timezonestringbody
enginesLogicalEngine[]bodyrequired
market_idsstring (uuid) | null[]body
Default[null]
repetitionsinteger | nullbody
Defaultnull
benchmark_modeBenchmarkMode | nullbody
Defaultnull
enabledbooleanbody
Defaulttrue
next_run_atstring (date-time) | nullbody
Defaultnull

Response 201: AuditSchedule