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

> Одна строка на массовую операцию.

Сериализаторы этих ручек пишут через `bulk_create`/`bulk_update`, поэтому сигналы модели
не срабатывают и без явной записи операция не видна вообще.



## OpenAPI

````yaml /openapi/main.json post /v1/crm/tarifs/bulk/
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/tarifs/bulk/:
    post:
      tags:
        - tarifs
      summary: Create bulk
      description: >-
        Одна строка на массовую операцию.


        Сериализаторы этих ручек пишут через `bulk_create`/`bulk_update`,
        поэтому сигналы модели

        не срабатывают и без явной записи операция не видна вообще.
      operationId: tarifs_bulk_create
      parameters:
        - $ref: '#/components/parameters/TenantId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TarifBulk'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/TarifBulk'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/TarifBulk'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TarifBulk'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    TarifBulk:
      type: object
      properties:
        add:
          type: array
          items:
            $ref: '#/components/schemas/TarifBulkCreateEntity'
        edit:
          type: array
          items:
            $ref: '#/components/schemas/TarifBulkUpdateEntity'
        remove:
          type: array
          items:
            type: integer
    TarifBulkCreateEntity:
      type: object
      properties:
        price:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
        weekdays:
          type: array
          items:
            type: integer
            maximum: 6
            minimum: 0
          title: Дни недели
        start:
          type: string
          format: time
          nullable: true
          title: Время с
        end:
          type: string
          format: time
          nullable: true
          title: Время до
        published:
          type: boolean
          title: Опубликовано
        order:
          type: integer
          maximum: 2147483647
          minimum: -2147483648
          title: Порядок
        name:
          type: string
          title: Название
          maxLength: 255
        one_time_payment:
          type: boolean
          title: Разовая оплата
        inventory:
          type: integer
          nullable: true
          title: Инвентарь
        inventory_group:
          type: integer
          nullable: true
          title: Группа инвентаря
        inventory_set:
          type: integer
          nullable: true
        inventory_set_price:
          type: integer
          nullable: true
          title: Цена комплекта
        service:
          type: integer
          nullable: true
          title: Услуга
        time_period:
          type: integer
          nullable: true
          title: Период
    TarifBulkUpdateEntity:
      type: object
      properties:
        id:
          type: integer
        price:
          type: string
          format: decimal
          pattern: ^-?\d{0,14}(?:\.\d{0,2})?$
        weekdays:
          type: array
          items:
            type: integer
            maximum: 6
            minimum: 0
          title: Дни недели
        start:
          type: string
          format: time
          nullable: true
          title: Время с
        end:
          type: string
          format: time
          nullable: true
          title: Время до
        published:
          type: boolean
          title: Опубликовано
        order:
          type: integer
          maximum: 2147483647
          minimum: -2147483648
          title: Порядок
        name:
          type: string
          title: Название
          maxLength: 255
        one_time_payment:
          type: boolean
          title: Разовая оплата
        inventory:
          type: integer
          nullable: true
          title: Инвентарь
        inventory_group:
          type: integer
          nullable: true
          title: Группа инвентаря
        inventory_set:
          type: integer
          nullable: true
        inventory_set_price:
          type: integer
          nullable: true
          title: Цена комплекта
        service:
          type: integer
          nullable: true
          title: Услуга
        time_period:
          type: integer
          nullable: true
          title: Период
      required:
        - id
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````