Chaitin Tech installer/simpletask API

终端安装包/简易任务

OpenAPI Specification

chaitin-installer-simpletask-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account installer/simpletask API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: installer/simpletask
  description: 终端安装包/简易任务
paths:
  /installer/simpletask/:
    post:
      summary: 发布个体发布任务
      deprecated: false
      description: ''
      tags:
      - installer/simpletask
      parameters:
      - name: X-CS-Header-App
        in: header
        description: 应用id
        required: true
        example: '{{app}}'
        schema:
          type: string
      - name: X-CS-Header-Company
        in: header
        description: 公司id
        required: true
        example: '{{company_id}}'
        schema:
          type: string
      - name: X-CS-Header-Crypt
        in: header
        description: 加密算法,请参考:https://servaltech.feishu.cn/docs/doccnQCZ2cw32uazgNSO0DFwceb
        required: true
        example: ''
        schema:
          type: string
      - name: If-None-Match
        in: header
        description: 对于支持「ETAG」的接口,将上一次请求的响应header的Etag,填入到下一次请求。若匹配,则返回304(无变更),否则会返回新版本的数据 + 新Etag
        required: true
        example: string
        schema:
          type: string
      - name: X-CS-Header-Debug
        in: header
        description: ''
        required: true
        example: '{{debug}}'
        schema:
          type: string
      - name: Accept-Language
        in: header
        description: ''
        required: true
        example: zh
        schema:
          type: string
      - name: X-Cs-Header-Timezone
        in: header
        description: ''
        required: true
        example: Asia/Shanghai
        schema:
          type: string
      - name: Content-Type
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                installer_id:
                  type: string
                include:
                  type: object
                  properties:
                    device_ids:
                      type: array
                      items: {}
                  required:
                  - device_ids
              required:
              - name
              - installer_id
              - include
            example:
              name: 个体发布2
              installer_id: 07ec5f03-86e9-40fc-91fb-4994da0631ce
              include:
                device_ids: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      name:
                        type: string
                      installer_id:
                        type: string
                      current:
                        type: integer
                      expand:
                        type: object
                        properties: {}
                      uid:
                        type: string
                      exclude:
                        type: object
                        properties: {}
                      company_id:
                        type: string
                      create_by_id:
                        type: string
                      include:
                        type: object
                        properties: {}
                      id:
                        type: integer
                      update_by_id:
                        type: string
                      status:
                        type: string
                      update_time:
                        type: string
                      total:
                        type: integer
                      create_time:
                        type: string
                    required:
                    - name
                    - installer_id
                    - current
                    - expand
                    - uid
                    - exclude
                    - company_id
                    - create_by_id
                    - include
                    - id
                    - update_by_id
                    - status
                    - update_time
                    - total
                    - create_time
                required:
                - code
                - msg
                - data
              example:
                code: 0
                msg: success
                data:
                  name: 个体发布2
                  installer_id: 07ec5f03-86e9-40fc-91fb-4994da0631ce
                  current: 0
                  expand: {}
                  uid: b197fe31-77e8-445d-9ef7-23385bafded8
                  exclude: {}
                  company_id: eeff7c64-5070-4582-8b93-fbcc57db7771
                  create_by_id: 50dcaf08-c0f6-4ffa-8f86-3220e55d4385
                  include: {}
                  id: 2
                  update_by_id: 50dcaf08-c0f6-4ffa-8f86-3220e55d4385
                  status: deactivated
                  update_time: '2024-07-26T10:06:10.618403Z'
                  total: 0
                  create_time: '2024-07-26T10:06:10.618342Z'
      security: []