---
title: "Manage an agent group's assigned applications"
method: POST
path: "/api/v2/agentgroups/{group_id}/associations"
tags: ["Graph", "Agent Groups"]
---

# Manage an agent group's assigned applications

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

## Request

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

Add or remove application assignments for an agent group in your organization.

## Headers

- `x-org-id` string

## Request body

- GraphOperationAgentGroup
  - `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` 'application', required: Targets which an "agent_group" can be associated to. The only supported value is `application`.

## 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)
