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



## OpenAPI

````yaml put /v1/accounts/tasks/{taskId}
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/tasks/{taskId}:
    put:
      tags:
        - Accounts
      summary: Update an account task
      parameters:
        - name: taskId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAccountTaskDto'
      responses:
        '200':
          description: Operation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountTaskResponseDto'
        '400':
          description: Task ID is required
          content:
            application/json:
              example:
                statusCode: 400
                message: Task ID is required!
                error: Bad Request
        '404':
          description: Account task not found
          content:
            application/json:
              example:
                statusCode: 404
                message: Account task 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:
    UpdateAccountTaskDto:
      type: object
      properties:
        title:
          type: string
          description: The title of the task
          example: Task 1
        assigneeId:
          type: string
          description: The identifier of the assignee
          example: U123
        activityId:
          type: string
          description: Change the activity associated with the task
          example: A123
        description:
          type: string
          description: The description of the task
          example: This is a task
        type:
          type: string
          description: The identifier / value of the type attribute of the task
          example: T123
        status:
          type: string
          description: "The identifier / value of the status attribute of the task\t"
          example: S123
        priority:
          type: string
          description: The identifier / value of the priority attribute of the task
          example: P123
        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 task
          example: {}
    AccountTaskResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The identifier of the task
        accountId:
          type: string
          description: The identifier of the account
        account:
          type: string
          description: The name of the account
        activityId:
          type: string
          description: The identifier of the activity
        title:
          type: string
          description: The title of the task
        description:
          type: string
          description: The description of the task
        assigneeId:
          type: string
          description: The identifier of the assignee
        type:
          type: string
          description: The type of the task
        typeId:
          type: string
          description: The identifier of the type
        typeConfiguration:
          type: object
          description: The configuration of the type
        status:
          type: string
          description: The status of the task
        statusId:
          type: string
          description: The identifier of the status
        statusConfiguration:
          type: object
          description: The configuration of the status
        priority:
          type: string
          description: The priority of the task
        priorityId:
          type: string
          description: The identifier of the priority
        priorityConfiguration:
          type: object
          description: The configuration of the priority
        attachments:
          description: The attachments of the task
          type: array
          items:
            type: string
        isActive:
          type: boolean
          description: Whether the task is active
        creator:
          type: string
          description: The creator of the task
        creatorId:
          type: string
          description: The identifier of the creator
        creatorEmail:
          type: string
          description: The email of the creator
        createdAt:
          type: string
          description: The creation date of the task
        updatedAt:
          type: string
          description: The update date of the task
        metadata:
          type: object
          description: The metadata of the task
      required:
        - id
        - accountId
        - account
        - activityId
        - title
        - description
        - assigneeId
        - type
        - typeId
        - typeConfiguration
        - status
        - statusId
        - statusConfiguration
        - priority
        - priorityId
        - priorityConfiguration
        - attachments
        - isActive
        - creator
        - creatorId
        - creatorEmail
        - createdAt
        - updatedAt
        - metadata
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: 'Enter your API key '

````