Clone a training pool

To create a duplicate training pool, clone it. An empty training pool will be created with the same parameters. Send a POST request to the resource /training/<training ID>/clone.

Request

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

Response

Contains information about the results of the operation.

{
  "id": "7ea08f99-5e24-47b4-b61f-c177a868d801",
  "type": "TRAINING.CLONE",
  "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": {
    "training_id": "123457"
  }
}
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 source training pool. String
details.training_id
ID of the new training pool. String
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 source training pool. String
details.training_id
ID of the new training pool. String