Skip to content

Delete a check profile

DELETE
/api/v1/data-source-groups/{uuid}
curl --request DELETE \
--url https://app.hostrepute.com/api/v1/data-source-groups/01a178db-d581-700d-9729-4f4abc8cee72 \
--header 'Authorization: Bearer <token>'

Delete a check profile. A profile that domains or IPs still use can’t be deleted: move or delete them first.

Needs the data-source-group:delete ability.

uuid
required
string

The UUID of the check profile.

Example

01a178db-d581-700d-9729-4f4abc8cee72

Deleted

Media typetext/plain
string

Example

No check profile with this UUID in your team

Media typeapplication/json
object
message
string

Example

{
"message": "No query results for model [App\\Models\\DataSourceGroup] 01a178db-d581-700d-9729-4f4abc8cee72"
}

Domains or IPs still use the profile

Media typeapplication/json
object
message
string
errors
object
data_source_group
Array<string>

Example

{
"message": "Move or delete this group's hosts before deleting the group.",
"errors": {
"data_source_group": [
"Move or delete this group's hosts before deleting the group."
]
}
}