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

# Update Action by ID

> Update an existing action by its ID via the ContactSwing API.

### Authorizations

<ParamField header="Authorization" type="string" required>
  Enter your ContactSwing JWT Bearer token.
</ParamField>

### Path Parameters

<ParamField path="action_id" type="string" required>
  Unique action identifier. Example: `6f439f98-32f6-4b44-928c-6e890e298d51`
</ParamField>

### Request Body Parameters

<ParamField path="name" type="string" required>
  Updated action display name. Example: `My SMS Action1`
</ParamField>

<ParamField path="type" type="array" required>
  Action type: `SEND_SMS`, `SEND_EMAIL`, `WEBHOOK`, `APPOINTMENT`, `CALL_TRANSFER`, `SEND_WHATSAPP`, `DTMF_ACTION`, `SINGLEDATAEXTRACTION`
</ParamField>

<ParamField path="sms.to.value" type="array" required>
  Recipient numbers: `[]`
</ParamField>
