/api/alert-rules/{id}/active
PATCH
/api/alert-rules/{id}/active
const url = 'https://example.com/api/alert-rules/1/active';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"isActive":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/alert-rules/1/active \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "isActive": true }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
integer format: int32
Request Body
Section titled “Request Body ”object
isActive
boolean
Example generated
{ "isActive": true}object
isActive
boolean
Example generated
{ "isActive": true}object
isActive
boolean
Example generated
{ "isActive": true}Responses
Section titled “ Responses ”OK