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

# Create

> Creates a new resource. If a team_id is not provided, the resource will not be considered as active



## OpenAPI

````yaml 26.06.25 post /api/directory/resources.create
openapi: 3.1.0
info:
  title: tipee
  version: 26.06.25
servers: []
security:
  - basicAuth: []
tags:
  - name: Activity
    description: Activity
  - name: Balances
    description: Balances
  - name: Directory
    description: Directory
  - name: Schedule
    description: Schedule
  - name: Timeclock
    description: Timeclock
paths:
  /api/directory/resources.create:
    post:
      tags:
        - Directory
      summary: Create
      description: >-
        Creates a new resource. If a team_id is not provided, the resource will
        not be considered as active
      operationId: post_app_ui_api_directory_directorycommand_createresource
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateResourceCommand'
      responses:
        '201':
          description: Resource created.
          content:
            application/json:
              schema:
                required:
                  - id
                properties:
                  id:
                    $ref: '#/components/schemas/Snowflake'
                type: object
components:
  schemas:
    CreateResourceCommand:
      required:
        - kind_id
        - attributes
      properties:
        id:
          $ref: '#/components/schemas/Snowflake'
        kind_id:
          $ref: '#/components/schemas/Snowflake'
        attributes:
          type: object
          minItems: 1
          additionalProperties: {}
        relations:
          type: array
          items:
            $ref: '#/components/schemas/CreateResourceCommandRelation'
        team_id:
          $ref: '#/components/schemas/Snowflake'
        start_date:
          $ref: '#/components/schemas/LocalDate'
        end_date:
          $ref: '#/components/schemas/LocalDate'
        additional_settings:
          $ref: '#/components/schemas/AdditionalSettings'
      type: object
    Snowflake:
      type: string
      format: snowflake
      example: '872815618512410358'
    CreateResourceCommandRelation:
      required:
        - relation_type_id
        - related_id
      properties:
        relation_type_id:
          $ref: '#/components/schemas/Snowflake'
        related_id:
          $ref: '#/components/schemas/Snowflake'
      type: object
    LocalDate:
      type: string
      format: local-date
      example: '2019-11-11'
    AdditionalSettings:
      properties:
        activity_rate_contract:
          $ref: '#/components/schemas/ActivityRateContract'
        security:
          $ref: '#/components/schemas/ResourceSecurity'
      type: object
    ActivityRateContract:
      required:
        - rate
      properties:
        rate:
          $ref: '#/components/schemas/Percentage'
        paid_hourly:
          type: boolean
          default: false
        trainee:
          type: boolean
          default: false
        apprentice:
          type: boolean
          default: false
      type: object
    ResourceSecurity:
      properties:
        username:
          type: string
        password:
          type: string
        send_email:
          type: boolean
      type: object
    Percentage:
      type: number
      format: percentage
      example: 100

````