Assign Knowledge to Category

Assign knowledge items to a category.

Endpoint

POST /v1/workspaces/{workspaceId}/category/{categoryId}/knowledge

Request

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

Body Parameters

ParameterTypeRequiredDescription
knowledgeIdsarray of UUIDsYesArray of knowledge UUIDs to assign

Response

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

Related Endpoints