POST /v1/categories
Create a new category by sending a JSON request body.
POST /v1/categories creates a new category.
Authentication
Send an organization API key in x-api-key or
Authorization: Bearer <key>.
Request Body
name and color are required.
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Category name, from 1 to 100 characters. |
color | string | Yes | Category color, from 1 to 50 characters. |
description | string | No | Category description, up to 500 characters. |
Example
curl -X POST "https://api.blueputto.com/v1/categories" \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{"name":"Sculpture","color":"#7c3aed"}'Success Response
201 Created
{
"data": {}
}Error Responses
400 Bad Request401 Unauthorized429 Too Many Requests