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



## OpenAPI

````yaml /openapi/shared.json post /v1/website/events/
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/website/events/:
    post:
      tags:
        - website
      summary: Create events
      operationId: website_events_create
      parameters:
        - $ref: '#/components/parameters/TenantId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ManageEvent'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ManageEvent'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ManageEvent'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManageEvent'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    ManageEvent:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        user_registered:
          type: integer
          readOnly: true
          default: 0
        video:
          type: string
          nullable: true
        title:
          type: string
          nullable: true
        image:
          type: string
          format: uri
        created_at:
          type: string
          format: date-time
          readOnly: true
          title: Создан
        updated_at:
          type: string
          format: date-time
          readOnly: true
          title: Обновлен
        location_link:
          type: string
          format: uri
          nullable: true
          maxLength: 200
        body:
          type: string
          nullable: true
        date:
          type: string
          format: date-time
        location:
          type: string
          nullable: true
          maxLength: 255
        user_limit:
          type: integer
          maximum: 2147483647
          minimum: -2147483648
        active:
          type: boolean
        extra: {}
        tenant:
          type: integer
      required:
        - created_at
        - date
        - id
        - updated_at
        - user_registered
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````