Delete a check profile
DELETE
/api/v1/data-source-groups/{uuid}
const url = 'https://app.hostrepute.com/api/v1/data-source-groups/01a178db-d581-700d-9729-4f4abc8cee72';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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”uuid
required
string
The UUID of the check profile.
Example
01a178db-d581-700d-9729-4f4abc8cee72Responses
Section titled “Responses”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." ] }}
