Remove Categories from Taxonomy

Remove category assignments from a taxonomy.

Endpoint

DELETE /v1/workspaces/{workspaceId}/taxonomy/{taxonomyId}/categories

Request

curl -X DELETE \
  'https://api.sharely.ai/v1/workspaces/{workspaceId}/taxonomy/{taxonomyId}/categories' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'organizationid: your-organization-id' \
  -d '{
    "categoryIds": ["category-uuid-1", "category-uuid-2"]
  }'

Body Parameters

ParameterTypeRequiredDescription
categoryIdsarray of UUIDsYesArray of category UUIDs to remove

Response

{
  "success": true,
  "removedCount": 2
}

Related Endpoints