Mega icon

Mega

Work with Mega API

Agent Bot → Update

AI-generated

Summary

Update an existing Agent Bot by specifying its ID and modifying one or more of its mutable fields.

Inputs

  • Agent Bot ID (required) — The unique identifier of the Agent Bot to update.
  • Update Fields — One or more fields to update on the Agent Bot, such as Avatar URL, Bot Config, Bot Type, Description, Name, or Outgoing URL.

Output shape

a single, updated Agent Bot object

Returns the data of the updated Agent Bot after applying the specified changes. Only fields provided in Update Fields are modified; other properties remain unchanged.

Examples

Example 1: Change the name and description of an Agent Bot

Provide the Agent Bot ID and set the 'Name' and 'Description' fields in Update Fields with new values.

Links

Discussion