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

# Update

> Updates an existing resource.



## OpenAPI

````yaml preview post /api/directory/resources.update
openapi: 3.1.0
info:
  title: tipee
  version: preview
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.update:
    post:
      tags:
        - Directory
      summary: Update
      description: Updates an existing resource.
      operationId: post_app_ui_api_directory_directorycommand_updateresource
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateResourceCommand'
      responses:
        '204':
          description: Resource updated.
components:
  schemas:
    UpdateResourceCommand:
      required:
        - id
      properties:
        id:
          $ref: '#/components/schemas/Snowflake'
        attributes:
          type: object
          additionalProperties: {}
        relations:
          type: array
          items:
            $ref: '#/components/schemas/UpdateResourceCommandRelation'
      type: object
    Snowflake:
      type: string
      format: snowflake
      example: '872815618512410358'
    UpdateResourceCommandRelation:
      required:
        - relation_type_id
      properties:
        relation_type_id:
          $ref: '#/components/schemas/Snowflake'
        related_id:
          description: Null means "remove the relation for that relation type"
          oneOf:
            - $ref: '#/components/schemas/Snowflake'
            - type: 'null'
      type: object

````