Delete a client

DELETE https://api.tamio.com/v2/clients/{uuid}

Soft-deletes a client account by marking it as pending deletion and suspended. Clients with an active subscription cannot be deleted. Associated sites are also scheduled for deletion.

Path Parameters

uuid string*

UUID of the client to delete

Responses

200 Client deleted successfully

Client deleted successfully

status integer
400 Validation or business-logic error. Possible `error_code` values:
401 Unauthorized – invalid or missing Bearer token
/clients/{uuid}
1const response = await fetch("https://api.tamio.com/v2/clients/{uuid}", {
2 method: "DELETE",
3 headers: {
4 "Authorization": "Bearer YOUR_API_KEY",
5 "Content-Type": "application/json"
6 },
7 body: JSON.stringify({
8 // ... request body
9 })
10});
11const data = await response.json();
Responses
{
  "status": 200
}