Bulk delete hosts
Deletes multiple hosts in a single request. The request body should be an array of host IDs to delete. Fails if any host has an associated daemon.
User API key (Bearer scp_u_...). Create in Platform > API Keys.
In: header
Request Body
application/json
Array of Host IDs to delete
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/hosts/bulk-delete" \ -H "Content-Type: application/json" \ -d '[ "497f6eca-6276-4993-bfeb-53cbbbba6f08" ]'{
"meta": {
"api_version": 1,
"server_version": "0.20.1"
},
"success": true,
"data": {
"deleted_count": 0,
"requested_count": 0
},
"error": "string"
}{
"meta": {
"api_version": 1,
"server_version": "0.20.1"
},
"success": true,
"code": "string",
"error": "string",
"params": {
"property1": null,
"property2": null
}
}Bulk confirm unconfirmed hosts
`POST /{id}/confirm` for several hosts. Every host is checked before any is confirmed, and the request is refused if one is missing, outside the caller's sites, or already confirmed.
Bulk dismiss unconfirmed hosts
`POST /{id}/dismiss` for several hosts. Every host is checked before any is dismissed, and the request is refused if one is missing, outside the caller's sites, or already confirmed.