Teams: Update Agents in Team
gapify_update_team_agentsReplace a team's agents by providing a list of user IDs; any agents not included are removed from the team.
Instructions
Replace the agents of a team. Agents not in user_ids are removed from the team [Teams]
PATCH /api/v1/accounts/{account_id}/teams/{team_id}/team_members
Auth: User API key (header api-access-token).
Body fields: user_ids (required). Extra fields can be passed via extra_body.
Text values may be written in Persian (Farsi) or any other language and are sent unchanged; IDs, numbers and phone numbers may use Persian or Arabic-Indic digits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team_id | Yes | The ID of the team to be updated | |
| user_ids | Yes | IDs of users to be added to the team Example: [1] | |
| account_id | Yes | The numeric ID of the account | |
| extra_body | No | Additional JSON body fields to merge into the request (for keys not listed above). |