# 批量设置文件标签

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/admin/label_file_binding/create_batch:
    post:
      summary: 批量设置文件标签
      deprecated: false
      description: ''
      tags:
        - admin/tag
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: '{{alist_token}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                items:
                  type: array
                  items:
                    type: object
                    properties:
                      path:
                        type: string
                      name:
                        type: string
                      isDir:
                        type: boolean
                      labelIdList:
                        type: array
                        items:
                          type: integer
                      size:
                        type: integer
                      type:
                        type: integer
                      modified:
                        type: string
                      created:
                        type: string
                      sign:
                        type: string
                      thumb:
                        type: string
                      hashInfoStr:
                        type: string
                    required:
                      - path
                      - name
                      - isDir
                      - labelIdList
                      - size
                      - type
                      - modified
                      - created
                      - sign
                      - thumb
                      - hashInfoStr
              required:
                - items
            example:
              items:
                - path: /123
                  name: 20221226_210943.jpg
                  isDir: false
                  labelIdList:
                    - 1
                    - 2
                  size: 0
                  type: 0
                  modified: '2025-08-15T00:00:00Z'
                  created: '2025-08-15T00:00:00Z'
                  sign: ''
                  thumb: ''
                  hashInfoStr: ''
                - path: /123
                  name: '-517cde7417777ca9.jpg'
                  isDir: false
                  labelIdList:
                    - 1
                    - 2
                  size: 0
                  type: 0
                  modified: '2025-08-15T00:00:00Z'
                  created: '2025-08-15T00:00:00Z'
                  sign: ''
                  thumb: ''
                  hashInfoStr: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      failed:
                        type: integer
                      results:
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                            ok:
                              type: boolean
                          required:
                            - name
                            - ok
                      succeed:
                        type: integer
                      total:
                        type: integer
                    required:
                      - failed
                      - results
                      - succeed
                      - total
                required:
                  - code
                  - message
                  - data
              example:
                code: 200
                message: success
                data:
                  failed: 0
                  results:
                    - name: 20221226_210943.jpg
                      ok: true
                    - name: '-517cde7417777ca9.jpg'
                      ok: true
                  succeed: 2
                  total: 2
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: admin/tag
      x-apifox-status: developing
      x-run-in-apifox: https://app.apifox.com/web/project/6849786/apis/api-336631692-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
