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



## OpenAPI

````yaml /openapi/orders.json post /v1/crm/requests/groups/
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/groups/:
    post:
      tags:
        - groups
      summary: Create groups
      operationId: groups_create
      parameters:
        - $ref: '#/components/parameters/TenantId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderRequestInventoryGroupCreate'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/OrderRequestInventoryGroupCreate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/OrderRequestInventoryGroupCreate'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrderRequestInventoryGroupCreate'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    OrderRequestInventoryGroupCreate:
      type: object
      properties:
        request:
          type: integer
          writeOnly: true
        time_period:
          type: integer
          writeOnly: true
          nullable: true
        group:
          type: integer
          writeOnly: true
          nullable: true
        start_at:
          type: string
          format: date-time
          writeOnly: true
        end_at:
          type: string
          format: date-time
          writeOnly: true
        count:
          type: integer
          writeOnly: true
          default: 1
        filter:
          writeOnly: true
          nullable: true
        filter_exact:
          type: boolean
          writeOnly: true
          default: false
        exclude_ids:
          type: array
          items:
            type: integer
          writeOnly: true
        inventory_id:
          type: integer
        set_id:
          type: string
      required:
        - end_at
        - exclude_ids
        - start_at
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````