PUT
/v1/private/alerts/{id}Update alertUpdate alert
Parameters
idstring · uuidpathrequiredRequest body
application/json
objectAlert_Write
alert_typestringenabledbooleanidstring · uuidmetadataobjectnamestringproject_idstring · uuidOptional project scope for this alert. When set, the alert is scoped to the specified project. Do NOT also provide a 'scope:project' trigger config — the system will create it automatically from this field. Sending both project_id and a scope:project trigger config will result in an error.
triggersarray of objectShow child attributes
Show array items
event_typestringrequiredidstring · uuidtrigger_configsarray of objectShow child attributes
Show array items
config_valueobjectgroup_indexinteger · int32Groups configs within a trigger: same group_index means AND between configs, different group_index means OR between groups. Null means a legacy/singleton group of one config. Always null for scope:project configs.
idstring · uuidtypestringrequiredwebhookobjectrequiredShow child attributes
headersobjectidstring · uuidnamestringsecret_tokenstringurlstringrequired{
"alert_type": "general",
"enabled": true,
"id": "00000000-0000-0000-0000-000000000000",
"metadata": {
"additionalProp1": "string"
},
"name": "string",
"project_id": "00000000-0000-0000-0000-000000000000",
"triggers": [
{
"event_type": "experiment:finished",
"id": "00000000-0000-0000-0000-000000000000",
"trigger_configs": [
{
"config_value": {
"additionalProp1": "string"
},
"group_index": 0,
"id": "00000000-0000-0000-0000-000000000000",
"type": "filter:guardrail_type"
}
]
}
],
"webhook": {
"headers": {
"additionalProp1": "string"
},
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"secret_token": "string",
"url": "string"
}
}Responses
objectErrorMessage
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}objectErrorMessage
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}objectErrorMessage
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}