Chaitin Tech installer/taskstep/{step_id} API

终端安装包/任务步骤/step_id 参数

OpenAPI Specification

chaitin-installer-taskstep-step-id-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account installer/taskstep/{step_id} API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: installer/taskstep/{step_id}
  description: 终端安装包/任务步骤/step_id 参数
paths:
  /installer/taskstep/{step_id}/:
    post:
      summary: 修改发布任务阶段
      deprecated: false
      description: ''
      tags:
      - installer/taskstep/{step_id}
      parameters:
      - name: step_id
        in: path
        description: ''
        required: true
        example: string
        schema:
          type: string
      - 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:
                step_category:
                  type: string
                delay_options:
                  type: object
                  properties:
                    measure:
                      type: string
                    value:
                      type: integer
                    enabled:
                      type: boolean
                  required:
                  - measure
                  - value
                  - enabled
                include:
                  type: object
                  properties: {}
                exclude:
                  type: object
                  properties: {}
              required:
              - step_category
              - delay_options
              - include
              - exclude
            example:
              step_category: manual
              delay_options:
                measure: hour
                value: 11
                enabled: true
              include: {}
              exclude: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      company_id:
                        type: string
                      id:
                        type: integer
                      scope:
                        type: string
                      step:
                        type: integer
                      delay_options:
                        type: object
                        properties:
                          measure:
                            type: string
                          value:
                            type: integer
                          enabled:
                            type: boolean
                        required:
                        - measure
                        - value
                        - enabled
                      step_category:
                        type: string
                      create_by_id:
                        type: string
                      create_time:
                        type: string
                      exclude:
                        type: object
                        properties: {}
                      update_time:
                        type: string
                      uid:
                        type: string
                      stats:
                        type: string
                      expand:
                        type: object
                        properties: {}
                      task_id:
                        type: string
                      total:
                        type: integer
                      min_rate:
                        type: integer
                      include:
                        type: object
                        properties: {}
                      current:
                        type: integer
                      update_by_id:
                        type: string
                    required:
                    - company_id
                    - id
                    - scope
                    - step
                    - delay_options
                    - step_category
                    - create_by_id
                    - create_time
                    - exclude
                    - update_time
                    - uid
                    - stats
                    - expand
                    - task_id
                    - total
                    - min_rate
                    - include
                    - current
                    - update_by_id
                required:
                - code
                - msg
                - data
              example:
                code: 0
                msg: success
                data:
                  company_id: eeff7c64-5070-4582-8b93-fbcc57db7771
                  id: 9
                  scope: common
                  step: 2
                  delay_options:
                    measure: hour
                    value: 11
                    enabled: true
                  step_category: manual
                  create_by_id: 50dcaf08-c0f6-4ffa-8f86-3220e55d4385
                  create_time: '2024-07-26T06:22:44.509264Z'
                  exclude: {}
                  update_time: '2024-07-26T07:16:17.524398Z'
                  uid: f5e532f1-f8b6-4c14-8435-6b9348c0b2eb
                  stats: init
                  expand: {}
                  task_id: f3637cc0-4b4f-4186-a38a-3c291fd3476f
                  total: 0
                  min_rate: 10000
                  include: {}
                  current: 0
                  update_by_id: 50dcaf08-c0f6-4ffa-8f86-3220e55d4385
      security: []