Agents: Update Agent in Account
gapify_update_agentUpdate an agent's role, availability, or auto-offline setting in a Gapify account by sending a PATCH request with the account ID and agent ID.
Instructions
Update an agent in the account [Agents]
PATCH /api/v1/accounts/{account_id}/agents/{id}
Auth: User API key (header api-access-token).
Body fields: role, availability, auto_offline. Extra fields can be passed via extra_body.
Text values may be written in Persian (Farsi) or any other language and are sent unchanged; IDs, numbers and phone numbers may use Persian or Arabic-Indic digits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the agent to be updated. | |
| role | No | Role of the agent. One of: `agent`, `administrator`. Example: "agent" | |
| account_id | Yes | The numeric ID of the account | |
| extra_body | No | Additional JSON body fields to merge into the request (for keys not listed above). | |
| auto_offline | No | Whether the availability status of agent is configured to go offline automatically when away. Example: false | |
| availability | No | Availability of the agent. One of: `available`, `busy`, `offline`. Example: "available" |