# 作品导出

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/download/export/file:
    post:
      summary: 作品导出
      deprecated: false
      description: |
        此接口会根据传入的参数生成一条导出任务并返回任务标识，需结合 导出结果 接口轮询返回结果。
      tags:
        - 作品
      parameters:
        - name: x-api-key
          in: header
          description: ''
          required: true
          example: '{{apiKey}}'
          schema:
            type: string
        - name: x-channel
          in: header
          description: ''
          required: true
          example: ''
          schema:
            type: string
        - name: x-token
          in: header
          description: ''
          required: true
          example: '{{token}}'
          schema:
            type: string
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                edit:
                  description: |-
                    导出的作品是否可编辑
                    true=可编辑
                    false=不可编辑
                  example: 'true'
                  type: string
                files_to_zip:
                  description: |-
                    导出的图片是否压缩为zip
                    true=不压缩
                    false=压缩
                  example: 'false'
                  type: string
                format:
                  description: |
                    导出格式
                  example: ppt
                  type: string
                id:
                  description: |
                    作品ID
                  example: '1'
                  type: string
              required:
                - edit
                - files_to_zip
                - format
                - id
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: 返回码，0表示成功，非0表示异常
                  data:
                    type: string
                    description: 导出任务标识
                  msg:
                    type: string
                    description: 返回提示信息
                required:
                  - code
                  - data
                  - msg
                x-apifox-orders:
                  - code
                  - data
                  - msg
              example:
                code: 0
                data: cdb8146b-746b-4006-bd40-19f597e85293
                msg: 操作成功
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 作品
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/4285308/apis/api-165857679-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://dev-cn.your-api-server.com
    description: 开发环境
  - url: http://test-cn.your-api-server.com
    description: 测试环境
  - url: https://co.aippt.cn
    description: 正式环境
security: []

```
