Skip to main content
PATCH
Update Metric

Headers

x-anyreach-org
string | null

Organization ID for user PATs (pat_ prefix tokens)

Path Parameters

metric_id
string
required

Body

application/json

Schema for API requests to update a metric.

criteria, when provided, is a full replacement of the metric's criteria (matched by key: existing keys update in place, missing keys archive, new keys create) and bumps definition_version.

name
string | null
description
string | null
metric_kind
enum<string> | null
Available options:
objective,
perceptual
modality
enum<string> | null
Available options:
transcript,
audio
perceiver
string | null
panel_size
integer | null
routing_policy
Routing Policy · object | null
gate_predicate
Gate Predicate · object | null
criteria
CriterionItemRequest · object[] | null
archived_at
string<date-time> | null

Response

Successful Response