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



## OpenAPI

````yaml /openapi/finances.json post /v1/finances/categories/
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/finances/categories/:
    post:
      tags:
        - categories
      summary: Create categories
      operationId: categories_create
      parameters:
        - $ref: '#/components/parameters/TenantId'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PaymentCategory'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PaymentCategory'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PaymentCategory'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentCategory'
          description: ''
      security:
        - jwtAuth: []
components:
  parameters:
    TenantId:
      name: X-Tenant-Id
      in: header
      required: false
      schema:
        type: integer
      description: >-
        Компания, в контексте которой выполняется запрос — её id из `GET
        /v1/tenant/`. Пользователь должен состоять в этой компании: чужой id
        доступа к данным не даёт. Без заголовка компания определяется по домену
        запроса.
  schemas:
    PaymentCategory:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
        deleted:
          type: boolean
          readOnly: true
        created_at:
          type: string
          format: date-time
          readOnly: true
          title: Создан
        updated_at:
          type: string
          format: date-time
          readOnly: true
          title: Обновлен
        name:
          type: string
          title: Название
          maxLength: 255
        order:
          type: integer
          maximum: 2147483647
          minimum: -2147483648
          nullable: true
          title: Порядок
        type:
          allOf:
            - $ref: '#/components/schemas/TypeD33Enum'
          title: Тип
          minimum: -32768
          maximum: 32767
        enabled:
          type: boolean
          title: Включена
        tenant:
          type: integer
        parent:
          type: integer
          nullable: true
          title: Родительская статья
      required:
        - created_at
        - deleted
        - id
        - name
        - updated_at
    TypeD33Enum:
      enum:
        - 0
        - 1
      type: integer
      description: |-
        * `0` - Приход
        * `1` - Расход
  securitySchemes:
    jwtAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````