Mega icon

Mega

Work with Mega API

Agent → Update

AI-generated

Summary

Update an existing agent's properties by specifying the agent ID and desired fields to change, including their auto offline setting, availability status, and role.

Inputs

  • Agent ID (required) — Numeric ID of the agent to update.
  • Update Fields — Set of fields to modify on the agent, including 'Auto Offline' (boolean to determine if agent auto goes offline), 'Availability Status' (choose from Available, Busy, Offline), and 'Role' (choose from Administrator or Agent).

Output shape

a single updated agent record

The response returns the updated agent data reflecting the changes applied; no pagination or multiple records returned.

Links

Discussion