# 添加离线下载

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/fs/add_offline_download:
    post:
      summary: 添加离线下载
      deprecated: false
      description: ''
      tags:
        - fs
        - fs
        - alist Copy/fs
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: '{{alist_token}}'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                urls:
                  type: array
                  items:
                    type: string
                  title: url
                path:
                  type: string
                  title: 目标路径
                tool:
                  type: string
                  title: 工具
                  description: 可选`aria2`,`SimpleHttp`和`qBittorrent`
                delete_policy:
                  type: string
                  title: 删除策略
                  description: >-
                    可选`delete_on_upload_succeed`,`delete_on_upload_failed`,`delete_never`,`delete_always`
              required:
                - path
                - urls
                - tool
                - delete_policy
              x-apifox-orders:
                - urls
                - path
                - tool
                - delete_policy
            example:
              path: /local
              urls:
                - >-
                  https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png
              tool: SimpleHttp
              delete_policy: delete_on_upload_succeed
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 状态码
                  message:
                    type: string
                    title: 信息
                  data:
                    type: object
                    properties:
                      tasks:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            name:
                              type: string
                            state:
                              type: integer
                            status:
                              type: string
                            progress:
                              type: integer
                            error:
                              type: string
                          x-apifox-orders:
                            - id
                            - name
                            - state
                            - status
                            - progress
                            - error
                    required:
                      - tasks
                    x-apifox-orders:
                      - tasks
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                code: 200
                message: success
                data:
                  tasks:
                    - id: jwy7BrfZRzbI2xWg7-y
                      name: >-
                        download https://www.baidu.com/img/20d6cf.png to
                        (/local)
                      state: 0
                      status: ''
                      progress: 0
                      error: ''
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: fs
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/6849786/apis/api-327955427-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
