cURL
curl --request POST \ --url https://apigcp.trynia.ai/v2/categories \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "ML Papers", "color": "#4CAF50", "order": 1 } '
{ "id": "<string>", "name": "<string>", "user_id": "<string>", "organization_id": "<string>", "color": "<string>", "order": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
Create a new category for organizing data sources.
API key must be provided in the Authorization header
Category name
1 - 50
"ML Papers"
Hex color code (e.g.,
7
"#4CAF50"
Display order for sorting categories
x >= 0
Category created successfully
Unique identifier for the category
Owner user ID
Organization ID if category belongs to an organization
Hex color code
Display order
Was this page helpful?