Skip to content

Delete delivery hours

DELETE
/api/v1/alert-groups/{uuid}
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.

uuid
required
string

The UUID of the delivery hours.

Example

01a178db-d7b4-730d-82fa-5fb952d888e4

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."
]
}
}