cURL
curl --request PATCH \ --url https://apigcp.trynia.ai/v2/categories/{category_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "color": "<string>", "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" }
Update an existing category (name, color, or order).
API key must be provided in the Authorization header
Category UUID
Category name
1 - 50
Hex color code (e.g.,
7
Display order for sorting categories
x >= 0
Category updated 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?