VoiceGateway

Turn an alert rule on or off and choose where it sends

PUT
/api/v1/org/{orgId}/project/{projectId}/alert-rules/{ruleId}

Authorization

consoleSession
cookievg_session<token>

The console's session cookie, set when you sign in. Every operation accepts it, at the role the operation names.

Path Parameters

orgId*string

Authorised orgId; the server must verify organisation/project ownership before any read.

Length1 <= length
projectId*string

Authorised projectId; the server must verify organisation/project ownership before any read.

Length1 <= length
ruleId*string

One of the seven alert rules; any other value is not_found.

Value in"slow-answer""cut-off""job-failed""slow-join""plain-phone""recording-lost""ingress-error"

Request Body

application/json
  1. body
on*boolean

Whether the rule sends. Off still opens incidents.

to*array<>

Channel kinds the rule sends to.

Response Body

The rule as saved.

application/json
  1. response
ruleId*string

Identifier of an existing console rule.

Value in"slow-answer""cut-off""job-failed""slow-join""plain-phone""recording-lost""ingress-error"
on*boolean

Whether the rule sends; true when never saved. A rule that is off still opens incidents.

to*array<>

Channel kinds the rule sends to. No webhook URLs or credentials.

Example Request
curl -X PUT 'https://example.com/api/v1/org/string/project/string/alert-rules/slow-answer' \  -H 'Content-Type: application/json' \  -d '{  "on": true,  "to": [    "email"  ]}'
Example Response
{  "ruleId": "slow-answer",  "on": true,  "to": [    "slack"  ]}

Was this page helpful?