Get Category Path

Get the full path from root to a specific category.

Endpoint

GET /v1/workspaces/{workspaceId}/category/{categoryId}/path

Request

curl -X GET \
  'https://api.sharely.ai/v1/workspaces/{workspaceId}/category/{categoryId}/path' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'organizationid: your-organization-id'

Response

{
  "path": [
    {
      "id": "root-uuid",
      "name": "Medical"
    },
    {
      "id": "parent-uuid",
      "name": "Specialties"
    },
    {
      "id": "category-uuid",
      "name": "Cardiology"
    }
  ],
  "pathString": "Medical > Specialties > Cardiology"
}

Related Endpoints