Skip to main content
PATCH
Update an outcome rubric by id

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Headers

X-Test-Mode
enum<string>

Sandbox opt-in for Clerk-session-authenticated requests — see Test mode explained for the full credential-header matrix and worked samples. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.

Available options:
true,
false

Path Parameters

rubricId
string
required

Body

application/json
name
string

New rubric name (1–200 chars). Omit to keep the current name.

Required string length: 1 - 200
Example:

"Tone and empathy"

criteria_md
string

Revised success-criteria markdown the LLM judge evaluates against (1–10,000 chars). Omit to keep the current criteria.

Required string length: 1 - 10000
Example:

"Score 1 only when the agent showed empathy and resolved the query."

evaluator_prompt
string

Revised judge prompt (max 8000 chars — prompt-injection cap). Omit to keep the current prompt.

Maximum string length: 8000
Example:

"You are an outcome judge. Rate the conversation against the criteria."

scope
enum<string>

New evaluation scope — inbox, voice, or org; moving a rubric to agent scope requires the agent-scoped endpoint and returns 422 here.

Available options:
agent,
inbox,
voice,
org
Example:

"inbox"

Response

Successful response.