update_agent
Update an agent's profile, roles, teams, password, or enabled status in LibreDesk; password changes and disabling sign the agent out of all sessions.
Instructions
Update Agent
Changing the password or disabling the agent signs them out of all sessions. Requires the users:manage permission.
PUT /api/v1/agents/{id}
Tags: Agents
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"first_name": "<first_name>",
"email": "<email>",
"roles": "<roles>"
},
"name": "update_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | (path parameter) | |
| Yes | (body) Agent's email address | ||
| roles | Yes | (body) Names of the roles assigned to the agent | |
| teams | No | (body) Names of the teams to assign the agent to. On update, the agent is removed from teams not listed. | |
| enabled | No | (body) Whether agent is enabled. Used only on update. | |
| last_name | No | (body) Agent's last name | |
| first_name | Yes | (body) Agent's first name | |
| new_password | No | (body) Agent's new password. Optional, used only on update. | |
| send_welcome_email | No | (body) Only used during agent creation to send welcome email | |
| availability_status | No | (body) Agent's availability status. Used only on update. |