Mega icon

Mega

Work with Mega API

Team → Update Agents

AI-generated

Summary

Update the list of agent user IDs for a specific team by replacing them with a provided JSON array of user IDs.

Inputs

  • Team ID (required) — Numeric ID of the team to update.
  • User IDs (required) — JSON array containing the IDs of users to set as the team's agents.

Output shape

a single record representing the updated team agents data returned from the API

The operation requires both the Team ID and a JSON array of user IDs. It updates the team's agents list in bulk by overwriting it with the supplied array.

Links

Discussion