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



## OpenAPI

````yaml /openapi/orders.json patch /v1/crm/requests/inventories/{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/crm/requests/inventories/{id}/:
    patch:
      tags:
        - inventories
      summary: Patch inventories
      operationId: inventories_partial_update
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
        - $ref: '#/components/parameters/TenantId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedOrderRequestInventoryCreate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedOrderRequestInventoryCreate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedOrderRequestInventoryCreate'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderRequestInventoryCreate'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    PatchedOrderRequestInventoryCreate:
      type: object
      properties:
        request:
          type: integer
          nullable: true
        client:
          type: integer
          nullable: true
        inventory:
          type: integer
        tarif:
          type: integer
          nullable: true
          title: Тариф
        tarif_price:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
          title: Цена тарифа
        tarif_duration:
          type: string
          title: Длительность тарифа
        start_at:
          type: string
          format: date-time
          nullable: true
          title: Начало периода
        end_at:
          type: string
          format: date-time
          nullable: true
          title: Конец периода
        extra:
          title: Доп. данные
        autorenewal:
          type: boolean
          writeOnly: true
          nullable: true
        request_status:
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/RequestStatusEnum'
            - $ref: '#/components/schemas/NullEnum'
    OrderRequestInventoryCreate:
      type: object
      properties:
        request:
          type: integer
          nullable: true
        client:
          type: integer
          nullable: true
        inventory:
          type: integer
        tarif:
          type: integer
          nullable: true
          title: Тариф
        tarif_price:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
          title: Цена тарифа
        tarif_duration:
          type: string
          title: Длительность тарифа
        start_at:
          type: string
          format: date-time
          nullable: true
          title: Начало периода
        end_at:
          type: string
          format: date-time
          nullable: true
          title: Конец периода
        extra:
          title: Доп. данные
        autorenewal:
          type: boolean
          writeOnly: true
          nullable: true
        request_status:
          nullable: true
          oneOf:
            - $ref: '#/components/schemas/RequestStatusEnum'
            - $ref: '#/components/schemas/NullEnum'
      required:
        - inventory
    RequestStatusEnum:
      enum:
        - 0
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
      type: integer
      description: |-
        * `0` - Запрос
        * `1` - Забронировано
        * `2` - В аренде
        * `3` - Отменено
        * `4` - Завершено
        * `5` - Должник
        * `6` - Просрочка
    NullEnum:
      enum:
        - null
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````