---
title: "Manage the members of an agent group"
method: POST
path: "/api/v2/agentgroups/{group_id}/members"
tags: ["Graph", "Agent Groups"]
---

# Manage the members of an agent group

`POST /api/v2/agentgroups/{group_id}/members`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/agentgroups/{group_id}/members`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/agentgroups/:group_id/members/post.ts> (a function with typed inputs; its response is checked against the schema)

Add or remove agents from an agent group in your organization.

## Headers

- `x-org-id` string

## Request body

- GraphOperationAgentGroupMember
  - `id` string, required: The ObjectID of graph object being added or removed as an association.
  - `op` 'add' | 'remove' | 'update', required: How to modify the graph connection.
  - `type` 'agent', required: The member type. The only supported value is `agent`.

## Response `204`

OK

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
