Delete a domain or IP
DELETE
/api/v1/hosts/{uuid}
const url = 'https://app.hostrepute.com/api/v1/hosts/01a178db-d582-717c-8bb6-f01625c3d70f';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/hosts/01a178db-d582-717c-8bb6-f01625c3d70f \ --header 'Authorization: Bearer <token>'Stop monitoring a domain or IP and delete it.
Needs the host:delete ability.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”uuid
required
string
The UUID of the domain or IP.
Example
01a178db-d582-717c-8bb6-f01625c3d70fResponses
Section titled “Responses”Deleted
Media typetext/plain
string
Example
No domain or IP with this UUID in your team
Media typeapplication/json
object
message
string
Example
{ "message": "No query results for model [App\\Models\\Host] 01a178db-d582-717c-8bb6-f01625c3d70f"}
