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

# Manage an agent group's assigned applications

`POST /agentgroups/{group_id}/associations`

## Request

- Base URL: `https://console.jumpcloud.com/api/v2`
- 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-api-2/docs/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-api-2.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-api-2/revisions/3f09fe63caaa?raw)
