Update an alert rule
Update an alert rule. Only the fields included in the request body are changed.
patch/v1/alert-rules/{rule_id}
Request
- Base URLhttps://api.us.poly.ai
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
rule_idstring required
Example:ar_0Kx4mNpQ8rWvYb2dFgHjLs
The rule_id must be a prefixed ID (e.g. ar_0Kx4mNpQ8rWvYb2dFgHjLs).
Request body
Example request
{
"threshold_value": 2000,
"enabled": false
}Response
Alert rule updated successfully.
Example response
{
"id": "ar_0Kx4mNpQ8rWvYb2dFgHjLs"
}Changes
No recorded changes to this operation across all 1 revision of this API.