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

# Update events (mobile)

> Deletes all existing events for an assistant and replaces them with a new list, initiated by a connected mobile user.



## OpenAPI

````yaml api-reference/openapi-calendar.json post /update-event-mobile
openapi: 3.0.0
info:
  title: Calendar API
  description: >-
    API for managing calendar events for the Catalina Project. Includes examples
    for all endpoints.
  version: 1.0.1
  contact:
    name: Markus Urban
servers:
  - url: /
security: []
paths:
  /update-event-mobile:
    post:
      tags:
        - Mobile User
      summary: Replace all events for an assistant via mobile app
      description: >-
        Deletes all existing events for an assistant and replaces them with a
        new list, initiated by a connected mobile user.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                token:
                  type: string
                assistant_id:
                  type: string
                events:
                  type: array
                  items:
                    $ref: '#/components/schemas/Event'
              required:
                - token
                - assistant_id
                - events
            example:
              token: eyJh...
              assistant_id: assistant-abc-789
              events:
                - title: Team Lunch
                  start: '2025-08-22T12:30:00Z'
                  color: '#28a745'
                  allDay: false
                  alarm: false
      responses:
        '200':
          description: Status of the event update operation or error if not connected.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/SuccessUpdate'
                  - $ref: '#/components/schemas/Error'
                  - $ref: '#/components/schemas/NotConnectedError'
              examples:
                success:
                  summary: Update successful
                  value:
                    status: success
                    message: Events updated successfully
                notConnected:
                  summary: User is not connected to the assistant
                  value:
                    status: error
                    type: not_connected
components:
  schemas:
    Event:
      type: object
      properties:
        title:
          type: string
          example: Team Meeting
        start:
          type: string
          format: date-time
          example: '2025-07-25T14:00:00Z'
        color:
          type: string
          example: '#007bff'
        allDay:
          type: boolean
          example: false
        alarm:
          type: boolean
          example: true
      required:
        - title
        - start
        - color
        - allDay
        - alarm
    SuccessUpdate:
      type: object
      properties:
        status:
          type: string
          example: success
        message:
          type: string
          example: Events updated successfully
    Error:
      type: object
      properties:
        status:
          type: string
          example: invalid
        message:
          type: string
          example: Invalid or expired token
    NotConnectedError:
      type: object
      properties:
        status:
          type: string
          example: error
        type:
          type: string
          example: not_connected

````