Operation status

Copying, moving, and deleting non-empty folders can take some time. The response to each of these requests contains the URL of the operation status. Below is a description of the URL and status description formats.

Request format

Use the GET method to send a request for operation status. The URL for this request (including the ID) is returned in the response if the operation may take time (for example, when copying).

https://cloud-api.yandex.net/v1/disk/operations/<operation ID>

Response format

If the request is processed without errors, the API returns the 200 OK code. The response body contains an operation status within the Operation object.

Sample response:

{
  "status":"success"
}

Element

Description

status

Operation status. Possible values:

  • success — Operation successfully completed.
  • failed — Operation failed. Try repeating the original copy, move, or delete request.
  • in-progress — Operation has started but not finished yet.