Create task priority option (settings.manage)
POST
/tasks/priority-options
Code sample: Shell / cURL
curl --request POST \ --url https://example.com/api/v1/tasks/priority-options \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "category": "NONE", "color": "example", "name": "example", "position": 1 }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
category
required
string
color
required
string
name
required
string
position
integer
Responses
Section titled “Responses”Created option.
Media typeapplication/json
object
Example
{ "data": { "canonicalCategory": "NONE", "category": "NONE" }}Validation error. Parse failures include field paths and expectations.
Media typeapplication/json
Validation error with safe field paths and expected values; submitted values are never returned.
object
error
required
object
code
required
Stable machine-readable error code.
string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required
Human-readable error message.
string
status
required
HTTP status code, mirrored in the body.
integer
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Media typeapplication/json
Standard error envelope.
object
error
required
object
code
required
Stable machine-readable error code.
string
message
required
Human-readable error message.
string
status
required
HTTP status code, mirrored in the body.
integer
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input.
Media typeapplication/json
Standard error envelope.
object
error
required
object
code
required
Stable machine-readable error code.
string
message
required
Human-readable error message.
string
status
required
HTTP status code, mirrored in the body.
integer
Example
{ "error": { "code": "UNAUTHORIZED" }}Chelsea is operated by Arepa Labs LLC