Getting priorities
Use this request to get a list of priorities for an issue.
GET
https://api.tracker.yandex.net/v3/priorities
Query format
Before making a request, get permission to access the API.
To get a list of priorities, use an HTTP GET
request:
GET /v3/priorities
Host: api.tracker.yandex.net
Authorization: OAuth <OAuth_token>
X-Org-ID or X-Cloud-Org-ID: <organization_ID>
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-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.
-
Request parameters
Additional parameters
Parameter | Description | Data type |
---|---|---|
localized | Shows if the response contains translations. Acceptable values include:
|
Boolean |
Request for priorities:
- An HTTP GET method is used.
GET https://api.tracker.yandex.net/v3/priorities?localized=false
Response format
If the request is successful, the API returns a response with code 200 OK
.
The response body contains the results in JSON format.
[
{
"self": "https://api.tracker.yandex.net/v3/priorities/5",
"id": 5,
"key": "blocker",
"version": 1341632717561,
"name": "Blocker",
"order": 5
},
...
]
Response parameters
Parameter | Description | Data type |
---|---|---|
self | Address of the API resource with information about the priority. | String |
id | Priority ID | Number |
key | Priority key. | String |
version | Priority version. | Number |
name | Priority name displayed. If localized=false is provided in the request, this parameter duplicates the name in other languages. |
String |
order | Priority weight. This parameter affects the order of priority display in the interface. | Number |
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.
- 401
- The user is not authorized. Make sure that actions described in the API access section are performed.
- 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.