---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.4
alternate:
  - https://appmetrica.yandex.com/docs/en/mobile-api/logs/request-cancel.md
  - https://appmetrica.yandex.com/docs/ru/mobile-api/logs/request-cancel.md
  - https://appmetrica.yandex.com/docs/zh/mobile-api/logs/request-cancel.md
  - href: https://appmetrica.yandex.com/docs/en/mobile-api/logs/request-cancel.md
    type: text/markdown
    title: Markdown version
  - href: https://appmetrica.yandex.com/docs/en/llms.txt?revision=r21698989
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com/docs/en/llms.txt?revision=r21698989

# Cancel an export request

You can cancel a request to prepare or export data:

```no-highlight translate=no
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](https://appmetrica.yandex.com/docs/en/mobile-api/intro/authorization.md#get-oauth-token), `{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](#request-list).

Sample request:

```no-highlight translate=no
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."}`

<!-- source: en/_includes/feedback-button-2.md -->
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.

<a href="../../troubleshooting/feedback-new">
  <span class="button">Contact support</span>
</a>

<a href="../../troubleshooting/feedback-docs">
  <span class="button">Suggest an improvement for documentation</span>
</a>
<!-- endsource: en/_includes/feedback-button-2.md -->
    