Creating a checklist or adding items to it
Use this request to create a checklist and add new items to it.
POST
https://api.tracker.yandex.net/v3/issues/<issue_ID>/checklistItems
Query format
Before making a request, get permission to access the API.
To create a new checklist or add items to an existing one, use an HTTP POST request. In the request body, specify the parameters in JSON format.
POST /v3/issues/<issue_ID>/checklistItems
Host: api.tracker.yandex.net
Authorization: OAuth <OAuth_token>
X-Org-ID or X-Cloud-Org-ID: <organization_ID>
{
"text": "<item_text>",
"checked": true,
"assignee" : "<user_ID_or_login>",
"deadline": {
"date": "2021-05-09T00:00:00.000+0000",
"deadlineType": "date"
}
}
Headers
-
Host: Address of the node that provides the API. -
Authorization: Authorization token about these formats:-
OAuth <OAuth_token>: For authorization using the OAuth 2.0 protocol. Learn more -
Bearer <IAM_token>: For authorization using an IAM token, if a Yandex Cloud Organization organization is linked to Tracker. Learn more
-
-
X-Org-IDorX-Cloud-Org-ID: Organization ID.-
Use the
X-Org-IDheader if a Tracker organization is linked to Yandex 360 for Business. -
Use the
X-Cloud-Org-IDheader if a Tracker organization is linked to Yandex Cloud Organization.
To get the organization ID, go to Administration → Organizations and copy the value from the ID field.
-
Request body parameters
The request body contains the information required to create a checklist or add an item to a checklist:
Required parameters
| Parameter | Description | Data type |
|---|---|---|
| text | Text of the item. | String |
Additional parameters
| Parameter | Description | Data type |
|---|---|---|
| checked | Item completion flag:
|
Boolean |
| assignee | ID or username of the user to whom the checklist item is assigned. | String |
| deadline | Deadline for the checklist item. | Map item |
deadline object fields
| Parameter | Description | Data type |
|---|---|---|
| date | Deadline in YYYY-MM-DDThh:mm:ss.sss±hhmm format. |
Date |
| deadlineType | deadline parameter data type. |
String |
Response format
If the request is processed incorrectly, the API returns a response with an error code:
- 400
- One or more request parameters have an invalid value.
- 404
- The requested object was not found. You may have specified an invalid object ID or key.
- 422
- JSON validation error, the request is rejected.
- 423
- Object edits disabled. The
versionparameter value limit (the maximum number of object updates) might have been exceeded. The maximum version value is10100for robots and11100for users.