---
title: "Edit associations of a Provider Application"
method: POST
path: "/providers/{provider_id}/applications/{id}/associations"
tags: ["Applications", "Providers"]
---

# Edit associations of a Provider Application

`POST /providers/{provider_id}/applications/{id}/associations`

## Request

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

Associates a Provider's SSO Application with an organization.

#### Sample Request
```
curl -X POST 'https://console.jumpcloud.com/api/v2/providers/{provider_id}/applications/{application_id}/associations' \
  -H 'accept: application/json' \
  -H 'content-type: application/json' \
  -H 'x-api-key: {API_KEY}' \
  -d '{
    "op": "add",
    "type": "Organization",
    "id": "{Org_ID}"
  }'
```

## Path parameters

- `provider_id` string, byte, required
- `id` string, required

## Request body

- ApplicationAssociationRequest
  - `id` string, required: The ObjectID of Organization being added or removed as an association.
  - `op` 'add' | 'remove', required: How to modify the Association.

## Response `204`

OK

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

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