Create task
POST
/tm/tasksRequest
Body Params application/json
title
string
optional
description
string | null
optional
day
string | null
optional
projectId
integer | null
optional
parentId
integer | null
optional
userId
string | null
optional
type
enum<string>
optional
Allowed values:
actionmeetcall
priority
enum<integer> | enum<null>
optional
Allowed values:
0123
boardId
integer | null
optional
boardColumnId
integer | null
optional
customFields
object
optional
Key-value object with custom field id and custom field value for the task
For example
"customFields" : {
"<text_custom_field_id>": "Text value",
"<boolean_custom_field_id>": true,
"<datetime_custom_field_id>": "<ISO 8601 datetime string>",
"<select_custom_field_id>": "<custom_field_option_id>"
"<multiselect_custom_field_id>": ["<custom_field_option_id>"],
"<member_custom_field_id>": ["<user_id>"],
"<contact_custom_field_id>": "<contact_id>",
"<link_custom_field_id>": "Link value",
"<approval_custom_field_id>": ["<user_id>"]
}
Example
{
"title": "string",
"description": "string",
"day": "string",
"projectId": 0,
"parentId": 0,
"userId": "string",
"type": "action",
"priority": 0,
"boardId": 0,
"boardColumnId": 0,
"customFields": {}
}
Responses
Successful response(200)
Successful response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
success
boolean
optional
task
#/definitions/1260060optional
Example
{
"success": true,
"task": {
"id": 19,
"parentId": null,
"title": "4",
"description": "",
"date": "19.03.2022",
"time": "23:00",
"duration": 60,
"type": "action",
"priority": null,
"isCompleted": false,
"authorId": "3e265f8a-5c6c-4169-a2b1-6182f10b712b",
"userId": null,
"boardId": null,
"boardColumnId": null,
"projectId": null,
"image": null,
"isPrivate": false,
"dateStart": null,
"dateEnd": null,
"timeStart": null,
"timeEnd": null,
"tags": [],
"subscribers": [
"3e265f8a-5c6c-4169-a2b1-6182f10b712b"
],
"workloads": [
{
"id": "bc92d5f2-3aaf-49cc-8010-5007ced66ea6",
"userId": "24d20bfa-bc7e-471e-8c17-a199734532dc",
"type": 2,
"date": "05.10.2022",
"duration": 60,
"workStartAt": null,
"workEndAt": null
}
]
}
}
Last modified: 10 months ago