Delete an alert channel
DELETE
/api/v1/alerts/{uuid}
const url = 'https://app.hostrepute.com/api/v1/alerts/01a178db-d7b6-7131-a50c-cb60224dd1cd';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://app.hostrepute.com/api/v1/alerts/01a178db-d7b6-7131-a50c-cb60224dd1cd \ --header 'Authorization: Bearer <token>'Delete an alert channel. It stops getting alerts straight away.
Needs the alert:delete ability.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”uuid
required
string
The UUID of the alert channel.
Example
01a178db-d7b6-7131-a50c-cb60224dd1cdResponses
Section titled “Responses”Deleted
Media typetext/plain
string
Example
No alert channel with this UUID in your team
Media typeapplication/json
object
message
string
Example
{ "message": "No query results for model [App\\Models\\Alert] 01a178db-d7b6-7131-a50c-cb60224dd1cd"}
