Get the list of operations

  1. Request
  2. Headers
  3. Query parameters
  4. Response

Gets the list of operations.

Request

GET https://toloka.yandex.com/api/v1/operations
Authorization: OAuth <OAuth token>

Headers

Title Overview
authorization A token for account authorization. Add OAuth as a prefix.
Title Overview
authorization A token for account authorization. Add OAuth as a prefix.

Query parameters

Specified in the link after the question mark; separated by &.

Parameter

Overview

type

string

Operation type:

  • POOL.OPEN — Opening a pool.

  • POOL.CLOSE — Closing a pool.

  • PROJECT.ARCHIVE — Archiving a project.

  • POOL.ARCHIVE — Archiving a pool.

  • TASK_SUITE.BATCH_CREATE — Creating multiple task suites.

status

string

The status of the operation:

  • PENDING — Not started yet.

  • RUNNING — In progress.

  • SUCCESS — Completed successfully.

  • FAIL — Not completed.

sort

string

Parameters for sorting in ascending order:

  • id — Operation ID.

  • submitted — The UTC date and time when the request was sent, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss].

  • finished — The UTC date and time when the operation finished, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]; ISO 8601: YYYY-MM-DDThh:mm:ss[.sss].

You can separate parameters with a comma.

To change the sorting direction to descending, add the minus sign before the parameter. For example, sort=-id.

Standard query parameters limit, id_gt, id_gte, id_lt, id_lte, submitted_gt, submitted_gte, submitted_lt, submitted_lte, finished_gt, finished_gte, finished_lt, finished_lte

Parameter

Overview

type

string

Operation type:

  • POOL.OPEN — Opening a pool.

  • POOL.CLOSE — Closing a pool.

  • PROJECT.ARCHIVE — Archiving a project.

  • POOL.ARCHIVE — Archiving a pool.

  • TASK_SUITE.BATCH_CREATE — Creating multiple task suites.

status

string

The status of the operation:

  • PENDING — Not started yet.

  • RUNNING — In progress.

  • SUCCESS — Completed successfully.

  • FAIL — Not completed.

sort

string

Parameters for sorting in ascending order:

  • id — Operation ID.

  • submitted — The UTC date and time when the request was sent, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss].

  • finished — The UTC date and time when the operation finished, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]; ISO 8601: YYYY-MM-DDThh:mm:ss[.sss].

You can separate parameters with a comma.

To change the sorting direction to descending, add the minus sign before the parameter. For example, sort=-id.

Standard query parameters limit, id_gt, id_gte, id_lt, id_lte, submitted_gt, submitted_gte, submitted_lt, submitted_lte, finished_gt, finished_gte, finished_lt, finished_lte

Response

Contains a list of operations in the items array:

{"items": [{operation details 1}, {operation details 2}, ... {operation details n}], "has_more": false}