Delete a category

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

Deletes a category and all its descendants (children, grandchildren, etc.). Associated product links and jobs are cleaned up automatically.

Deletion will fail if the category or any of its descendants are associated with a site. Remove site associations first before deleting.

Path Parameters

uuid string*

UUID of the category to delete.

Responses

200 Category deleted successfully

Category deleted successfully

status integer
id string

UUID of the deleted category.

400 Validation or business logic error. Returned when:
401 Unauthorized – invalid or missing Bearer token
/categories/{uuid}
1const response = await fetch("https://api.tamio.com/v2/categories/{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,
  "id": "c3d4e5f6-a1b2-7890-cdef-1234567890ab"
}