Skip to main content
POST
/
v1
/
task-types
Create a task type
curl --request POST \
  --url https://api.vendaze.com/v1/task-types \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Call",
  "color": "#463dfb",
  "key": "call"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "Call",
    "color": "#463dfb",
    "key": "call",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

OAuth 2.1 access token.

Body

application/json
title
string
required

Display name of the task type.

Required string length: 1 - 40
Example:

"Call"

color
string
required

Display color in hex RGB format.

Pattern: ^#[0-9a-fA-F]{6}$
Example:

"#463dfb"

key
string
required

Identifier key for the task type. Unique within the workspace. Lowercase letters, digits, and underscores only. Used in the type field when creating or updating tasks.

Required string length: 1 - 40
Pattern: ^[a-z0-9]+(_[a-z0-9]+)*$
Example:

"call"

Response

Task type created successfully.

data
object