Creating a column
Use this request to create a column on an issue board.
POST
https://api.tracker.yandex.net/v3/boards/<board_ID>/columns/
Query format
Before making a request, get permission to access the API.
To create a column on a board, use an HTTP POST
request. In the request body, specify the parameters in JSON format.
POST /v3/boards/<board_ID>/columns/
Host: api.tracker.yandex.net
Authorization: OAuth <OAuth_token>
X-Org-ID or X-Cloud-Org-ID: <organization_ID>
If-Match: "<version_number>"
{
"name": "Approve",
"statuses":
[
"needInfo", "adjustment",...
]
}
Headers
-
Host
Address of the node that provides the API:
api.tracker.yandex.net
-
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-ID
orX-Cloud-Org-ID
: Organization ID.-
Use the
X-Org-ID
header if a Tracker organization is linked to Yandex 360 for Business. -
Use the
X-Cloud-Org-ID
header 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.
-
-
If-Match
Number of the current board version. If you specify an obsolete version of the board, the HTTP request returns an error message saying
412 Precondition Failed
.
Resource
Parameter | Description | Data type |
---|---|---|
<board_ID> | Board ID | Number |
Request body parameters
Required parameters
Parameter | Description | Data type |
---|---|---|
name | Column name | String |
statuses | The array contains the keys of possible statuses of issues to be included in the column. The list of all issue statuses: https://tracker.yandex.com/admin/statuses |
Array |
Response format
If the request is successful, the API returns a response with code 201 Created
.
The response body contains a JSON object with the created column parameters.
{
"self": "https://api.tracker.yandex.net/v3/boards/73/columns/5",
"id": 5,
"name": "Approve",
"statuses":
[
{
"self": "https://api.tracker.yandex.net/v3/statuses/2",
"id": "2",
"key": "needInfo",
"display": "Need info"
},
...
]
}
Response parameters
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the board column | String |
id | Column ID | Number |
name | Column name | String |
statuses | The array contains the keys of possible statuses of issues to be included in the column. The list of all issue statuses: https://tracker.yandex.com/admin/statuses |
Array |
statuses
object fields
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the status. | String |
id | Status ID. | String |
key | Status key. | String |
display | Status name displayed. | String |
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.
- 403
- You are not authorized to perform this action. You can check what rights you have in the Tracker interface. The same rights are required to perform an action via the API and interface.
- 404
- The requested object was not found. You may have specified an invalid object ID or key.
- 409
- There was a conflict when editing the object. The error may be due to an invalid update version.
- 412
- A conflict occurred while editing the object. The error may be due to an invalid update version.
- 422
- JSON validation error, the request is rejected.
- 428
- Access to the resource is denied. Make sure all required conditions for the request are specified.
- 500
- Internal service error. Try again later.
- 503
- The API service is temporarily unavailable.