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

# Get unavailables



## OpenAPI

````yaml /openapi/main.json get /v1/crm/inventories/unavailables/
openapi: 3.0.3
info:
  title: Yume API — Основное
  version: 1.0.0
  description: Базовые сущности и бизнес-логика CRM.
servers:
  - url: https://api.yume.cloud
    description: Production
  - url: https://api.stage.yume.cloud
    description: Stage
security: []
paths:
  /v1/crm/inventories/unavailables/:
    get:
      tags:
        - inventories
      summary: Get unavailables
      operationId: inventories_unavailables_list
      parameters:
        - in: query
          name: end_at
          schema:
            type: string
            format: date-time
          description: Конец окна. Момент времени или дата, от которой берётся полночь.
          required: true
        - in: query
          name: request
          schema:
            type: integer
        - in: query
          name: start_at
          schema:
            type: string
            format: date-time
          description: Начало окна. Момент времени или дата, от которой берётся полночь.
          required: true
        - $ref: '#/components/parameters/TenantId'
      responses:
        '200':
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Unavailable'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    Unavailable:
      type: object
      properties:
        request_id:
          type: integer
          readOnly: true
          nullable: true
        request_status:
          allOf:
            - $ref: '#/components/schemas/RequestStatusEnum'
          minimum: -32768
          maximum: 32767
        inventory:
          type: integer
        start_at:
          type: string
          format: date-time
        end_at:
          type: string
          format: date-time
      required:
        - end_at
        - inventory
        - request_id
        - start_at
    RequestStatusEnum:
      enum:
        - 0
        - 1
        - 2
        - 3
        - 4
        - 5
        - 6
      type: integer
      description: |-
        * `0` - Запрос
        * `1` - Забронировано
        * `2` - В аренде
        * `3` - Отменено
        * `4` - Завершено
        * `5` - Должник
        * `6` - Просрочка
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````