> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowengineering.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a category



## OpenAPI

````yaml /openapi/customer-api.json post /project/{projectId}/data-model
openapi: 3.0.0
info:
  contact: {}
  description: >-
    Flow customer API reference. Start with the [quickstart](/api/quickstart)
    and [authentication guide](/api/authentication).
  title: Customer API
  version: 1.0.0
servers:
  - description: Flow API
    url: https://backend.branch.flowengineering.com
security: []
tags:
  - name: Automations
  - name: Branches
  - name: Comments
  - name: Convert
  - name: Data Model
  - name: Diagrams
  - name: Entities
  - name: Files
  - name: Import
  - name: Notifications
  - name: Projects
  - name: ReqIF
  - name: ReqIF Import
  - name: Shared Access Grants
  - name: User Groups
  - name: Users
paths:
  /project/{projectId}/data-model:
    post:
      tags:
        - Data Model
      summary: Create a category
      operationId: CustomerCategoriesController_create
      parameters:
        - in: path
          name: projectId
          required: true
          schema:
            type: string
        - description: Workspace identifier
          in: header
          name: customer
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomerCreateCategoryDto'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerCategoryResponseDto'
          description: ''
      security:
        - api-key: []
        - bearer: []
components:
  schemas:
    CustomerCreateCategoryDto:
      properties:
        categoryType:
          enum:
            - folder
            - item
          type: string
        fields:
          items:
            $ref: '#/components/schemas/CustomerFieldInputDto'
          type: array
        humanIdPrefix:
          maxLength: 32
          nullable: true
          type: string
        name:
          type: string
      required:
        - name
        - categoryType
      type: object
    CustomerCategoryResponseDto:
      properties:
        builtin:
          type: boolean
        categoryType:
          enum:
            - folder
            - item
          type: string
        fields:
          items:
            $ref: '#/components/schemas/CustomerFieldResponseDto'
          type: array
        humanIdPrefix:
          type: string
        humanIdPrefixLocked:
          type: boolean
        id:
          type: string
        name:
          type: string
      required:
        - id
        - name
        - categoryType
        - builtin
        - fields
        - humanIdPrefix
        - humanIdPrefixLocked
      type: object
    CustomerFieldInputDto:
      properties:
        key:
          type: string
        multi:
          description: >-
            Whether a tag field accepts multiple simultaneous values. Only
            meaningful for tag fields.
          type: boolean
        name:
          type: string
        tags:
          description: >-
            Plain tag options for this field. On normal category update this is
            the full replacement list; with addOnly it is treated as options to
            ensure exist.
          items:
            $ref: '#/components/schemas/CustomerTagInputDto'
          type: array
        type:
          enum:
            - text
            - richText
            - number
            - tag
            - date
            - toggle
            - user
            - verificationResult
            - diagram
            - jira
            - linear
            - googleDoc
            - googleSheet
            - aodocsDoc
            - cadFile
            - file
            - stage
          type: string
      required:
        - key
        - name
        - type
      type: object
    CustomerFieldResponseDto:
      properties:
        key:
          type: string
        multi:
          type: boolean
        name:
          type: string
        tags:
          items:
            $ref: '#/components/schemas/CustomerTagResponseDto'
          type: array
        type:
          type: string
      required:
        - key
        - name
        - type
      type: object
    CustomerTagInputDto:
      properties:
        name:
          description: >-
            Display name of the tag option. Customer API writes refer to plain
            tag options by name; Flow stores and preserves the internal option
            id.
          example: Medium
          type: string
      required:
        - name
      type: object
    CustomerTagResponseDto:
      properties:
        id:
          type: string
        name:
          type: string
      required:
        - name
      type: object
  securitySchemes:
    api-key:
      in: header
      name: X-API-Key
      type: apiKey
    bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````