Skip to main content
POST
/
api
/
activity
/
tasks.create
Tasks : create
curl --request POST \
  --url https://api.example.com/api/activity/tasks.create \
  --header 'Content-Type: application/json' \
  --data '
{
  "project_id": "872815618512410358",
  "name": "<string>",
  "color": "<string>",
  "billable": true,
  "id": "872815618512410358",
  "remark_required": false,
  "hourly_budget": "PT1H30M20S",
  "tag_ids": [],
  "resource_ids": []
}
'

Body

application/json
project_id
string<snowflake>
required
Example:

"872815618512410358"

name
string
required
Required string length: 1 - 255
color
string
required
billable
boolean
required
id
string<snowflake>
Example:

"872815618512410358"

remark_required
boolean
default:false
hourly_budget
string<duration> | null
Example:

"PT1H30M20S"

tag_ids
string<snowflake>[]
resource_ids
string<snowflake>[]

Response

201

Task created.