> ## 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.

# Patch tasks



## OpenAPI

````yaml /openapi/workshop.json patch /v1/workshop/tasks/{task_id}/
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/{task_id}/:
    patch:
      tags:
        - tasks
      summary: Patch tasks
      operationId: tasks_partial_update
      parameters:
        - in: path
          name: task_id
          schema:
            type: integer
          required: true
        - $ref: '#/components/parameters/TenantId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedWorkshopTaskUpdate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedWorkshopTaskUpdate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedWorkshopTaskUpdate'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkshopTaskUpdate'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    PatchedWorkshopTaskUpdate:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          nullable: true
        comment:
          type: string
          nullable: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
          title: Обновлен
        name:
          type: string
          maxLength: 255
        type:
          allOf:
            - $ref: '#/components/schemas/TypeB28Enum'
          minimum: -32768
          maximum: 32767
        status:
          allOf:
            - $ref: '#/components/schemas/StatusEnum'
          minimum: -32768
          maximum: 32767
        statement_type:
          allOf:
            - $ref: '#/components/schemas/StatementTypeEnum'
          minimum: -32768
          maximum: 32767
        number:
          type: string
          nullable: true
          maxLength: 255
        price:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
          readOnly: true
        service_price:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
          readOnly: true
        resource_price:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
          readOnly: true
        paid_price:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
        finished_at:
          type: string
          format: date-time
          nullable: true
        ordering:
          type: integer
          maximum: 2147483647
          minimum: 0
        extra: {}
        tenant:
          type: integer
        stage:
          type: integer
          nullable: true
        created_by:
          type: integer
          readOnly: true
          nullable: true
        worker:
          type: integer
          nullable: true
        client:
          type: integer
          nullable: true
        request:
          type: integer
          nullable: true
        request_inventory:
          type: integer
          nullable: true
        inventory:
          type: integer
          nullable: true
        rental_point:
          type: integer
          nullable: true
    WorkshopTaskUpdate:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        created_at:
          type: string
          format: date-time
          nullable: true
        comment:
          type: string
          nullable: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
          title: Обновлен
        name:
          type: string
          maxLength: 255
        type:
          allOf:
            - $ref: '#/components/schemas/TypeB28Enum'
          minimum: -32768
          maximum: 32767
        status:
          allOf:
            - $ref: '#/components/schemas/StatusEnum'
          minimum: -32768
          maximum: 32767
        statement_type:
          allOf:
            - $ref: '#/components/schemas/StatementTypeEnum'
          minimum: -32768
          maximum: 32767
        number:
          type: string
          nullable: true
          maxLength: 255
        price:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
          readOnly: true
        service_price:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
          readOnly: true
        resource_price:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
          readOnly: true
        paid_price:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
        finished_at:
          type: string
          format: date-time
          nullable: true
        ordering:
          type: integer
          maximum: 2147483647
          minimum: 0
        extra: {}
        tenant:
          type: integer
        stage:
          type: integer
          nullable: true
        created_by:
          type: integer
          readOnly: true
          nullable: true
        worker:
          type: integer
          nullable: true
        client:
          type: integer
          nullable: true
        request:
          type: integer
          nullable: true
        request_inventory:
          type: integer
          nullable: true
        inventory:
          type: integer
          nullable: true
        rental_point:
          type: integer
          nullable: true
      required:
        - created_by
        - id
        - name
        - price
        - rental_point
        - resource_price
        - service_price
        - updated_at
    TypeB28Enum:
      enum:
        - 0
        - 1
      type: integer
      description: |-
        * `0` - Внутренняя
        * `1` - Внешняя
    StatusEnum:
      enum:
        - 0
        - 1
        - 2
        - 3
      type: integer
      description: |-
        * `0` - Новый
        * `1` - В работе
        * `2` - Завершено
        * `3` - Архив
    StatementTypeEnum:
      enum:
        - 0
        - 1
      type: integer
      description: |-
        * `0` - Расход
        * `1` - Приход
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````