Archive a project

Attention

The toloka.yandex.com domain will be disabled starting April 1, 2023. Please use the toloka.dev domain for API requests.

Sends the project to the archive.

If a project isn't being used, you can send it to the archive. To do this, all the pools in the project must be archived. You can get the project ID from the list of projects.

Request

Production version
Sandbox
POST https://toloka.dev/api/v1/projects/<project_id>/archive
Authorization: OAuth <OAuth token>

Path parameters

ParameterOverview
project_idProject ID.

Headers

TitleOverview
AuthorizationA token for account authorization. Add OAuth as a prefix.

Response

The response contains information about the results of the operation.

{
"id" : "57068577e4b0bf7b07a0256f",
"type" : "PROJECT.ARCHIVE",
"status" : "SUCCESS",
"submitted" : "2016-04-07T16:06:15.902",
"started" : "2016-04-07T16:06:15.902",
"finished" : "2016-04-07T16:06:15.902",
"progress" : 100,
"parameters" : {
"project_id" : "1"
}
}
ParameterOverview
idstring

Operation ID.
type

string

Operation type:

  • PROJECT.ARCHIVE — Archiving a project.
status

string

The status of the operation:

  • PENDING — Not started yet.
  • RUNNING — In progress.
  • SUCCESS — Completed successfully.
  • FAIL — Not completed.
submittedstring

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

The UTC date and time the operation started, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss].
finishedstring

The UTC date and time the operation was completed, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss].
progressfloat

The percentage of the operation completed.
parameters.project_idstring

Project ID.

You can check the operation status by sending requests to the /operations resource. For more information, see Tracking operations.

Contact support
Toloka API
OverviewAccessing the APIRate limiting
Quick start
Reference
Project
Pools
Training
Subscriptions to events
Toloker selection
Ways to upload tasks
Tasks
Task suites
Tracking operations
Getting responses
Checking completed tasks
Rewards
Messages for Tolokers
Various parameters
Libraries