Delete delivery hours
DELETE
/api/v1/alert-groups/{uuid}
const url = 'https://app.hostrepute.com/api/v1/alert-groups/01a178db-d7b4-730d-82fa-5fb952d888e4';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/alert-groups/01a178db-d7b4-730d-82fa-5fb952d888e4 \ --header 'Authorization: Bearer <token>'Delete a set of delivery hours. Alert channels stop following them right away, and a channel left with none gets alerts at any time. The team’s default delivery hours can’t be deleted.
Needs the alert-group:delete ability.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”uuid
required
string
The UUID of the delivery hours.
Example
01a178db-d7b4-730d-82fa-5fb952d888e4Responses
Section titled “Responses”Deleted
Media typetext/plain
string
Example
No delivery hours with this UUID in your team
Media typeapplication/json
object
message
string
Example
{ "message": "No query results for model [App\\Models\\AlertGroup] 01a178db-d7b4-730d-82fa-5fb952d888e4"}The default delivery hours
Media typeapplication/json
object
message
string
errors
object
alert_group
Array<string>
Example
{ "message": "The default contact group cannot be deleted.", "errors": { "alert_group": [ "The default contact group cannot be deleted." ] }}
