PATCH
/
data-sources
/
rename
Rename a data source (Flexible)
curl --request PATCH \
  --url https://apigcp.trynia.ai/v2/data-sources/rename \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "identifier": "<string>",
  "new_name": "<string>"
}'
{
  "success": true,
  "source_id": "<string>",
  "display_name": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
identifier
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/")
new_name
string
required

New display name for the resource

Required string length: 1 - 100

Response

Data source renamed successfully

success
boolean
source_id
string
display_name
string
message
string