> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yume.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Create stages



## OpenAPI

````yaml /openapi/workshop.json post /v1/workshop/tasks/stages/
openapi: 3.0.3
info:
  title: Yume API — Мастерская
  version: 1.0.0
  description: Работы, ремонт и сервисное обслуживание.
servers:
  - url: https://api.yume.cloud
    description: Production
  - url: https://api.stage.yume.cloud
    description: Stage
security: []
paths:
  /v1/workshop/tasks/stages/:
    post:
      tags:
        - tasks
      summary: Create stages
      operationId: tasks_stages_create
      parameters:
        - $ref: '#/components/parameters/TenantId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkshopStage'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/WorkshopStage'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/WorkshopStage'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkshopStage'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    WorkshopStage:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        name:
          type: string
          maxLength: 255
        order:
          type: integer
          maximum: 2147483647
          minimum: -2147483648
        status:
          allOf:
            - $ref: '#/components/schemas/StatusEnum'
          minimum: -32768
          maximum: 32767
        color:
          type: string
          maxLength: 7
        blocking:
          type: boolean
          title: Занимать инвентарь
        extra: {}
        tenant:
          type: integer
        pipeline:
          type: integer
          nullable: true
        post_state:
          type: integer
          nullable: true
      required:
        - id
        - name
    StatusEnum:
      enum:
        - 0
        - 1
        - 2
        - 3
      type: integer
      description: |-
        * `0` - Новый
        * `1` - В работе
        * `2` - Завершено
        * `3` - Архив
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````