Set metric activation
Enable or disable a catalogue metric for this agent (or workspace-wide). Catalogue metrics are defined once and reused; a metric does nothing on an agent until it's activated. Use scope='agent' (the default) to turn a metric on/off for the agent you're editing, this is the common case when an operator asks to "start measuring X on this agent". Use scope='workspace' to change the default for every agent that doesn't have its own override. Resolve the metric slug with list_metrics first; an unknown slug is rejected.
Authorization
bearerAuth A personal access token from Settings > API tokens.
In: header
Header Parameters
A key you choose, such as a UUID, that makes this POST safe to retry. Within 24 hours the same key and request answers with the first successful answer and runs nothing, the same key with a different request answers 422 idempotency_key_reused, and a key whose request is still running answers 409 idempotency_key_in_use. A failed request keeps nothing, so the same key runs it again.
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/operations/set_metric_activation" \ -H "Content-Type: application/json" \ -d '{ "slug": "string", "enabled": true, "agent": "string" }'{}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"code": "string",
"errors": [
{
"path": "string",
"message": "string"
}
],
"estimate": {},
"retryAfterSeconds": 0
}Set member role POST
Change an existing member's role. Pass the member's userId (from list_members). Roles: admin can do everything including members and billing; editor builds and tests agents; viewer sees agents and calls but changes nothing; reader sees calls and insights in the portal only. Owners cannot be changed here, and nobody can be made an owner here: ownership changes happen in Settings → Members.
Set model POST
Set the LLM model used at runtime by the live voice agent (NOT the model running the editor). The model is versioned: the write lands on the current draft version (create a draft first if the current version is published). Take the key from the model picker, which lists the models with their rate and where each is hosted, and marks the default as Recommended; get_agent shows the key the agent runs on now. When the user names a model loosely, map it to the matching picker key.