Cancel an export request

You can cancel a request to prepare or export data:

POST /logs/v1/export/{request_id}/cancel?application_id={application_id} HTTP/1.1
Host: api.appmetrica.yandex.com
Authorization: OAuth <your_token>

where <your_token> is an OAuth token that you can obtain by following this guide, {request_id} is the ID of the request you want to cancel, and {application_id} is the app ID.

You can find the request ID in the list of active export requests.

Sample request:

POST /logs/v1/export/112233445566778899/cancel?application_id=123456
Host: api.appmetrica.yandex.com
Authorization: OAuth <your_token>

If the cancellation request is successful, it returns the HTTP status 200 OK with the message:

  • Request cancellation has been scheduled:

    {"message": "Request cancellation has been scheduled."}

  • The request has already been completed and cannot be canceled:

    {"message": "The request has already been completed and cannot be canceled."}

If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.

Contact support Suggest an improvement for documentation