Mega icon

Mega

Work with Mega API

Inbox → Set Agent Bot

AI-generated

Summary

Assigns or removes an agent bot from a specified inbox by setting the agent bot ID for that inbox.

Inputs

  • Inbox ID (required) — Numeric ID of the inbox to update.
  • Agent Bot ID — String ID of the agent bot to assign to the inbox; leave empty to remove the agent bot from the inbox.

Output shape

a single record reflecting the updated inbox state or success response without a detailed body

The response shape is based on the update operation and may not contain detailed inbox data. Setting an empty Agent Bot ID removes the bot assignment.

Links

Discussion