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

# 取消导出请求

您可以取消准备或导出数据的请求：

```no-highlight translate=no
POST /logs/v1/export/{request_id}/cancel?application_id={application_id} HTTP/1.1
Host: api.boost.yandex.com
Authorization: OAuth <your_token>
```

其中 `<your_token>` 是 OAuth 令牌，可以通过遵循 [本指南](https://boost.yandex.com/doc/zh/analytics/content/mobile-api/intro/authorization.md#get-oauth-token) 获取，`{request_id}` 是您想要取消的请求 ID，`{application_id}` 是应用 ID。 

你可以在[活动导出请求列表](#request-list)中找到请求 ID。

示例请求：

```no-highlight translate=no
POST /logs/v1/export/112233445566778899/cancel?application_id=123456
Host: api.boost.yandex.com
Authorization: OAuth <your_token>
```

如果取消请求成功，它会返回 HTTP 状态 `200 OK`，并带有消息：

- 已安排取消请求：

    `{"message": "已安排取消请求。"}`

- 请求已完成，无法取消：

    `{"message": "请求已完成，无法取消。"}`

<!-- source: zh/analytics/content/_includes/feedback-button-2.md -->
如果您没有找到所需答案，可以通过反馈表单提交您的问题。 请尽可能详细地描述问题。 如果可能，请附上截图。

<a href="../troubleshooting/feedback-new">
  <span class="button">联系支持</span>
</a>

<a href="../troubleshooting/feedback-docs">
  <span class="button">建议改进文档</span>
</a>
<!-- endsource: zh/analytics/content/_includes/feedback-button-2.md -->
    