Archive a training pool

If a training pool isn't in use, it can be moved to the archive. The training pool must have the “closed” status. Send a POST request to the resource /training/<training ID>/archive.

Note. If the training pool is already archived, attempting to archive it again returns an empty response with status 204.

Request

POST /api/v1/training/<training pool ID>/archive
Host: https://sandbox.toloka.yandex.com
Authorization: OAuth <OAuth token>

Response

Contains information about the results of the operation.

{
  "id": "95029e60-eace-4a3e-96b9-c72c5e727218",
  "type": "TRAINING.ARCHIVE",
  "status": "SUCCESS",
  "submitted": "2021-02-26T10:13:32.921",
  "started": "2021-02-26T10:13:32.921",
  "finished": "2021-02-26T10:13:32.921",
  "progress": 100,
  "parameters": {
    "training_id": "123456"
  },
  "details": {}
}
Key descriptions
Key Value Data type
id
Operation ID. String
type
Operation type:
  • TRAINING.OPEN — Open a training pool.
  • TRAINING.CLOSE — Close a training pool.
  • TRAINING.CLONE — Clone a training pool.
  • TRAINING.ARCHIVE — Archive a training pool.
String
status
The status of the operation:
  • PENDING — Not started yet.
  • RUNNING — In progress.
  • SUCCESS — Completed sucessfully.
  • FAIL — Not completed.
String
submitted
The UTC date and time the request was sent, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]. String
started
The UTC date and time the operation started, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]. String
finished
The UTC date and time the operation was completed, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]. String
progress
The percentage of the operation completed. Number
parameters.training_id
ID of the training pool. String
details
Details of the operation completion. JSON
Key Value Data type
id
Operation ID. String
type
Operation type:
  • TRAINING.OPEN — Open a training pool.
  • TRAINING.CLOSE — Close a training pool.
  • TRAINING.CLONE — Clone a training pool.
  • TRAINING.ARCHIVE — Archive a training pool.
String
status
The status of the operation:
  • PENDING — Not started yet.
  • RUNNING — In progress.
  • SUCCESS — Completed sucessfully.
  • FAIL — Not completed.
String
submitted
The UTC date and time the request was sent, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]. String
started
The UTC date and time the operation started, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]. String
finished
The UTC date and time the operation was completed, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]. String
progress
The percentage of the operation completed. Number
parameters.training_id
ID of the training pool. String
details
Details of the operation completion. JSON