Mega icon

Mega

Work with Mega API

Team → Add Agent

AI-generated

Summary

Add one or more agents to a specified team by providing the team's ID and a JSON array of user IDs to add as agents.

Inputs

  • Team ID (required) — The numeric ID identifying the team to which agents will be added.
  • User IDs (required) — A JSON array containing user IDs to be added as agents to the team.

Output shape

a single JSON object containing the API response indicating success or failure of adding agents to the team

The API response structure depends on the Mega API; may include details of added agents or error information if the operation fails.

Links

Discussion