custom-metrics

Set Booking Intent Definition

Designate (or un-designate) this metric as the Booking Intent classifier.

This ONLY flips the booking_intent_classifier tag — it does NOT create a new revision (so a metric's evaluation history and results are untouched). When setting, the tag is cleared from every other tenant metric first, so at most one metric is the definition at a time.

Only a binary (Yes/No or Pass/Fail) MODEL metric can be the classifier — that's the shape the post-call stamping reads.

put/api/v1/custom-metrics/{metric_id}/booking-intent-definition

Path parameters

metric_idstring uuid required

Request body

is_definitionboolean required

Response

Successful Response

idstring uuid required
namestring required
descriptionstring nullable required
categorystring nullable required
source_template_keystring nullable required
compute_type'model' | 'formula' required
response_type'pass_fail' | 'yes_no' | 'numeric_score' | 'categorical' | 'text' | 'json' required
status'active' | 'archived' required
tagsstring[] required
active_revision_idstring uuid nullable required
linked_agent_idsstring[] required
applies_to_voiceboolean required
applies_to_textboolean required
applies_to_emailboolean required
applies_to_bookingboolean required
creates_action_itemsboolean required
created_atstring date-time required
updated_atstring date-time required
is_booking_intent_definitionboolean required

True when this metric is the tenant's Booking Intent classifier.

Derived from the tag so the frontend never hardcodes the magic string. Set/cleared only via the dedicated designation endpoint.

Changes