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

# Update An Activity

> This endpoint updates an existing activity or task within a collection.

#### Description

This API endpoint allows for the update of an existing activity or task within a specified collection. The activity to be updated is identified by the unique identifier (activityId) provided in the path parameter.

#### Path

<ParamField path="activityId" type="string" required>
  The unique identifier for the activity to be updated.
</ParamField>

#### Body

<ParamField body="iconType" type="string">
  Specifies the type of icon associated with the activity. Possible values include 'emoji', 'interaction', 'messaging\_app', etc.
</ParamField>

<ParamField body="iconValue" type="string">
  Defines the specific value of the icon based on the iconType.

  * For 'emoji', provide any emoji.
  * For 'interaction', valid values include 'call', 'meeting', 'message', 'coffee', 'lunch', 'event', 'drink', etc.
  * For 'messaging\_app', valid values include 'whatsapp', 'twitter', 'linkedin', 'hangout', 'skype', 'slack', 'imessage', 'facebook\_messenger', 'signal', 'discord', 'wechat', 'telegram', 'viber', etc.
</ParamField>

<ParamField body="name" type="string">
  The updated name or title of the activity.
</ParamField>

<ParamField body="scheduleAt" type="string">
  Specifies the updated scheduled time for the activity in the format "YYYY-MM-DDTHH:mm:ss.SSSZ".
</ParamField>

<ParamField body="description" type="string">
  The updated description providing additional details about the activity.
</ParamField>

<ParamField body="associated" type="string">
  The updated ID of the collection record associated with the activity.
</ParamField>

<ParamField body="status" type="string">
  The updated ID of the status attribute indicating the current status of the activity.
</ParamField>

#### Response

<ResponseField name="status" type="boolean">
  Indicates the success or failure of the activity update. In this case,
  true signifies a successful operation.
</ResponseField>

<ResponseField name="message" type="string">
  Provides a human-readable message accompanying the response. In this instance,
  it confirms the successful update of the activity with the message "Record updated successfully!"
</ResponseField>

<ResponseExample>
  ```json 200-Success theme={null}
  {
      "status": true,
      "message": "Record updated successfully!"
  }
  ```

  ```json 401-Unauthorised theme={null}
  {
    "status": false,
    "message": "No token provided"
  }
  ```
</ResponseExample>
