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

# Updates an account activity



## OpenAPI

````yaml put /v1/accounts/activities/{activityId}
openapi: 3.0.0
info:
  title: Thena Platform
  description: The Thena Platform API description
  version: 1.0.0
  contact: {}
servers:
  - url: https://platform.thena.ai
    description: Platform
  - url: http://localhost:8000
    description: Local
security:
  - ApiKey: []
tags: []
paths:
  /v1/accounts/activities/{activityId}:
    put:
      tags:
        - Accounts
      summary: Update an account activity
      parameters:
        - name: activityId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAccountActivityDto'
      responses:
        '200':
          description: Operation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountActivityResponseDto'
        '400':
          description: Activity ID is required
          content:
            application/json:
              example:
                statusCode: 400
                message: Activity ID is required!
                error: Bad Request
        '404':
          description: Account activity not found
          content:
            application/json:
              example:
                statusCode: 404
                message: Account activity not found
                error: Not Found
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                statusCode: 500
                message: Something went wrong!
                error: Internal Server Error
components:
  schemas:
    UpdateAccountActivityDto:
      type: object
      properties:
        title:
          type: string
          description: The title of the activity
          example: Meeting with John Doe
        description:
          type: string
          description: The description of the activity
          example: Meeting with John Doe
        activityTimestamp:
          type: string
          description: The timestamp of the activity
          example: '2024-01-01T00:00:00Z'
        duration:
          type: number
          description: The duration of the activity in minutes
          example: 60
        location:
          type: string
          description: The location of the activity
          example: New York, NY
        type:
          type: string
          description: The identifier / value of the Type attribute of the activity
          example: T123
        status:
          type: string
          description: The identifier / value of the Status attribute of the activity
          example: S123
        participants:
          description: The identifiers of the participants of the activity
          example:
            - U123
            - U124
          type: array
          items:
            type: string
        attachmentUrls:
          description: The URLs of the attachments to attach to the note
          example:
            - https://example.com/attachment1.jpg
            - https://example.com/attachment2.jpg
          type: array
          items:
            type: string
        metadata:
          type: object
          description: The metadata of the activity
          example: {}
    AccountActivityResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The identifier of the activity
        accountId:
          type: string
          description: The identifier of the account
        account:
          type: string
          description: The name of the account
        activityTimestamp:
          type: string
          description: The timestamp of the activity
        duration:
          type: number
          description: The duration of the activity in minutes
        location:
          type: string
          description: The location of the activity
        title:
          type: string
          description: The title of the activity
        description:
          type: string
          description: The description of the activity
        type:
          type: string
          description: The type of the activity
        typeId:
          type: string
          description: The identifier of the type attribute
        typeConfiguration:
          type: object
          description: The configuration of the type attribute
        status:
          type: string
          description: The status of the activity
        statusId:
          type: string
          description: The identifier of the status attribute
        statusConfiguration:
          type: object
          description: The configuration of the status attribute
        participants:
          description: The participants of the activity
          type: array
          items:
            type: string
        creator:
          type: string
          description: The creator of the activity
        creatorId:
          type: string
          description: The identifier of the creator
        creatorEmail:
          type: string
          description: The email of the creator
        attachments:
          description: The attachments of the activity
          type: array
          items:
            type: string
        createdAt:
          type: string
          description: The creation date of the activity
        updatedAt:
          type: string
          description: The update date of the activity
        metadata:
          type: object
          description: The metadata of the activity
      required:
        - id
        - accountId
        - account
        - activityTimestamp
        - duration
        - location
        - title
        - description
        - type
        - typeId
        - typeConfiguration
        - status
        - statusId
        - statusConfiguration
        - participants
        - creator
        - creatorId
        - creatorEmail
        - attachments
        - createdAt
        - updatedAt
        - metadata
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````