Skip to main content
PATCH
/
data-sources
/
{source_id}
/
category
Assign category to data source
curl --request PATCH \
  --url https://apigcp.trynia.ai/v2/data-sources/{source_id}/category \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "category_id": "<string>"
}
'
{
  "success": true,
  "source_id": "<string>",
  "category_id": "<string>"
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

source_id
string
required

Flexible data source identifier. Can be:

  • UUID (e.g., "550e8400-e29b-41d4-a716-446655440000")
  • Display name (e.g., "Vercel AI SDK - Core")
  • URL (e.g., "https://docs.trynia.ai/")

Body

application/json
category_id
string | null

Category ID to assign, or null to remove category

Response

Category assigned successfully

success
boolean
source_id
string
category_id
string | null