> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 执行批量快捷操作

> POST /bulk-operation/quick-action/

在 **Management API** 主机（`api.scanova.io`）上异步对大量 QR 码一次性应用一项快捷操作，使用您的原始 Management API 密钥进行身份验证。

```
POST https://api.scanova.io/bulk-operation/quick-action/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

<ParamField body="operation" type="string" required>
  `apply_design`、`organize` 或 `delete` 之一。
</ParamField>

<ParamField body="qr_id_list" type="array">
  要操作的特定 QR id。也可改用 `filter`、`search` 或 `bulk_op_id`——与[批量下载 QR 码](/zh/api-reference/management-api/bulk-operation/download)相同的目标选择方式。
</ParamField>

<ParamField body="filter" type="object">
  一个已保存的过滤器，用于选择要操作哪些 QR 码，作为 `qr_id_list` 的替代方式。
</ParamField>

<ParamField body="search" type="string">
  一个搜索词，用于选择要操作哪些 QR 码，作为 `qr_id_list` 的替代方式。`"all"` 选择所有拥有的 QR 码。
</ParamField>

<ParamField body="bulk_op_id" type="string">
  现有批量操作的 `operation_id`——对该操作所生成的 QR 码进行操作。
</ParamField>

<ParamField body="pattern_info" type="string">
  当 `operation` 为 `apply_design` 时必填——要应用的设计图案数据。
</ParamField>

<ParamField body="folder" type="integer">
  当 `operation` 为 `organize` 时必填——目标文件夹 id，必须属于该账户。
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST "https://api.scanova.io/bulk-operation/quick-action/" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a" \
    -H "Content-Type: application/json" \
    -d '{
      "operation": "organize",
      "qr_id_list": ["a1b2c3d4", "e5f6g7h8"],
      "folder": 12
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "operation_id": "bo-qa-001",
    "message": ["Your request is being processed. We'll email you once it's ready."]
  }
  ```
</ResponseExample>

异步——轮询[列出批量操作](/zh/api-reference/management-api/bulk-operation/list)获取 `status`/`progress`。如果 `operation` 值无效，或所选操作缺少所需的 `folder`/`pattern_info`，则返回 `400`。

<Warning>
  对于套餐中不支持软删除恢复的 QR 码，`delete` 操作不可撤销——在使用 `operation: "delete"` 调用之前请确认目标选择。
</Warning>

## 相关内容

* [批量下载 QR 码](/zh/api-reference/management-api/bulk-operation/download)——相同的目标选择参数，改为下载而非操作。
* [将拥有的 URL QR 码导出为 CSV](/zh/api-reference/management-api/bulk-operation/qr-list)——获取 `qr_id_list` 的快捷 id 来源。
* [列出批量操作](/zh/api-reference/management-api/bulk-operation/list)——轮询完成状态。
* [Management API 概览](/zh/api-reference/management-api/overview)——适用于此端点的身份验证方案和配额规则。


## OpenAPI

````yaml api-reference/openapi/management-api.json POST /bulk-operation/quick-action/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    api.scanova.io (QR codes, folders, tags, leads, forms, analytics, plans,
    shared users & roles), plus the token-creation and usage-stats endpoints
    used to authenticate against it. Every path and request/response shape below
    was verified live against a real API key and the actual running backend
    (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://api.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /bulk-operation/quick-action/:
    post:
      summary: Run a bulk quick action
      description: >-
        Applies one quick action to many QR codes at once, asynchronously:
        `apply_design` (requires `pattern_info`), `organize` (requires
        `folder`), or `delete`. Select targets the same way as [Bulk-download QR
        codes](/api-reference/management-api/bulk-operation/download):
        `qr_id_list`, `filter`, `search`, or `bulk_op_id`.
      operationId: bulkQuickAction
      requestBody:
        content:
          application/json:
            example:
              operation: organize
              qr_id_list:
                - a1b2c3d4
                - e5f6g7h8
              folder: 12
      responses:
        '200':
          description: Quick action started.
          content:
            application/json:
              example:
                operation_id: bo-qa-001
                message:
                  - >-
                    Your request is being processed. We'll email you once it's
                    ready.
        '400':
          description: >-
            Invalid `operation`, or missing `folder`/`pattern_info` for the
            chosen operation.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Send your Management API key as the raw value of the Authorization
        header — no "Bearer " or "Token " prefix, and no other characters.
        Example: `Authorization: 401f7ac837da42b97f613d789819ff93537bee6a`. A
        header containing more than one space-separated part is rejected
        outright. Requests also require the request's Host header to be the
        management API host (e.g. api.scanova.io) — the same key sent to the
        regular API host will not authenticate.

````