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



## OpenAPI

````yaml 26.06.25 post /api/activity/activities.update
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/activity/activities.update:
    post:
      tags:
        - Activity
      summary: Update
      description: Updates an existing activity entry.
      operationId: post_app_ui_api_activity_entry_activitycommand_updateactivity
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateActivityCommand'
      responses:
        '204':
          description: Activity updated.
components:
  schemas:
    UpdateActivityCommand:
      required:
        - id
        - type
      properties:
        id:
          $ref: '#/components/schemas/Snowflake'
        type:
          $ref: '#/components/schemas/ActivityType'
          description: Activity type. Determines validation rules for other fields.
        task_id:
          $ref: '#/components/schemas/Snowflake'
        billable:
          type: boolean
        date:
          oneOf:
            - $ref: '#/components/schemas/LocalDate'
            - type: 'null'
        duration:
          oneOf:
            - $ref: '#/components/schemas/Duration'
              description: >-
                Can be provided only for `duration` activity type and must be ≤
                24h.
            - type: 'null'
          description: Can be provided only for `duration` activity type and must be ≤ 24h.
        remark:
          type:
            - string
            - 'null'
        start:
          $ref: '#/components/schemas/LocalDateTime'
          description: Can be provided only for `range`.
        end:
          oneOf:
            - $ref: '#/components/schemas/LocalDateTime'
              description: >-
                Can be provided only for `range` activity type. Set to `null` to
                leave the activity open.
            - type: 'null'
          description: >-
            Can be provided only for `range` activity type. Set to `null` to
            leave the activity open.
      type: object
    Snowflake:
      type: string
      format: snowflake
      example: '872815618512410358'
    ActivityType:
      type: string
      example: duration
      enum:
        - duration
        - range
    LocalDate:
      type: string
      format: local-date
      example: '2019-11-11'
    Duration:
      description: '[ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations)'
      type: string
      format: duration
      example: PT1H30M20S
    LocalDateTime:
      type: string
      format: local-date-time
      example: '2019-11-11T12:34:56'

````