> ## 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.

# Move QR Codes into a folder

> POST /folder/{id}/bulk_move/

Moves one or more QR Codes into a folder — either an explicit list of QR Codes, or every QR Code matching a filter.

<Note>
  Requires the account's `FOLDER_MANAGEMENT` quota and the `FOLDER_CAN_CREATE_AND_MANAGE` permission. See the [Management API overview](/api-reference/management-api/overview) for authentication details.
</Note>

<ParamField path="id" type="integer" required>
  Target folder ID.
</ParamField>

<ParamField body="qr_code_ids" type="array" required>
  Either a list of `qrid` strings, or the single-element sentinel `["all"]` to move every QR Code matching `filter`/`search` below. Sending anything other than an array returns `400` with `{"error": "qr_code_ids must be a list"}`. An empty list is a no-op: `200` with `moved_count: 0`.
</ParamField>

<ParamField body="from" type="integer | string">
  Only meaningful alongside `qr_code_ids: ["all"]`. A folder ID restricts the source to QR Codes currently in that folder; the literal string `"uncategorized"` restricts it to QR Codes with no folder at all.

  <Warning>
    Omitting `from` entirely is **not** the same as `"uncategorized"` — it means "no source restriction, consider every QR Code regardless of its current folder." Confusing the two is an easy mistake if you're building a "move all" UI around the account's full QR list.
  </Warning>
</ParamField>

<ParamField body="filter" type="object">
  Only honored alongside `qr_code_ids: ["all"]`. Accepts the same filter keys as [List QR Codes](/api-reference/management-api/overview) (`category`, `tags`, `type`, `status`, `qrid`, `users`, `no_user`, `created_from`, `created_till`, `scan_type`, `scan_count1`, `scan_count2`). A `folder` key here is ignored even if sent — use `from` instead to scope by source folder.
</ParamField>

<ParamField body="search" type="object">
  Only honored alongside `qr_code_ids: ["all"]` — `{"search_value": "..."}`, matched the same way the main QR-code search does.
</ParamField>

<Note>
  Only QR Codes you own are eligible, and a soft-deleted (trashed) QR Code is always excluded — passing a trashed `qrid` is silently a no-op. If the target folder's `folder_type` is `page`, only page-builder QR Codes are moved (and vice versa for `qr` folders); an `["all"]` move against the wrong `folder_type` silently skips the ineligible QR Codes rather than erroring. QR Codes already in the target folder don't count toward `moved_count`.
</Note>

<RequestExample>
  ```bash cURL Move specific QR codes theme={null}
  curl --request POST \
    --url 'https://api.scanova.io/folder/42/bulk_move/' \
    --header 'Authorization: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
      "qr_code_ids": ["qr_8f2a1c", "qr_9b3d2e"]
    }'
  ```

  ```bash cURL Move everything Uncategorized theme={null}
  curl --request POST \
    --url 'https://api.scanova.io/folder/42/bulk_move/' \
    --header 'Authorization: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
      "qr_code_ids": ["all"],
      "from": "uncategorized"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "message": "Successfully moved 2 QR codes to folder 'Marketing Campaigns'",
    "moved_count": 2
  }
  ```
</ResponseExample>

`404` if the target folder or `from` (when a real folder ID) isn't owned by this account.

## Related

* [Unassign QR Codes from a folder](/api-reference/management-api/folders/bulk-unassign) — the inverse operation.
* [List QR Codes in a folder](/api-reference/management-api/folders/qr-codes) — confirm the result.
* [Management API overview](/api-reference/management-api/overview) — the auth scheme and quota architecture this endpoint is part of.


## OpenAPI

````yaml api-reference/openapi/management-api.json POST /folder/{id}/bulk_move/
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:
  /folder/{id}/bulk_move/:
    post:
      summary: Move QR codes into a folder
      description: >-
        Requires the account's FOLDER_MANAGEMENT quota and the
        FOLDER_CAN_CREATE_AND_MANAGE permission. qr_code_ids may be an explicit
        list of qrid values, or the sentinel ["all"] combined with
        from/filter/search.
      operationId: bulkMoveIntoManagedFolder
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            example:
              qr_code_ids:
                - qr_8f2a1c
                - qr_9b3d2e
      responses:
        '200':
          description: QR codes moved.
          content:
            application/json:
              example:
                message: Successfully moved 2 QR codes to folder 'Marketing Campaigns'
                moved_count: 2
        '400':
          description: qr_code_ids was not a list.
          content:
            application/json:
              example:
                error: qr_code_ids must be a list
        '404':
          description: >-
            The target folder, or the from folder (when a real folder id), isn't
            owned by this account.
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.

````