Assign Categories to Taxonomy

Assign one or more categories to a taxonomy.

Endpoint

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

Request

curl -X POST \
  '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 assign

Response

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

Related Endpoints