---
title: "Patch Mappings by Team ID"
method: PATCH
path: "/v3/identity-provider/team-group-mappings"
tags: ["Auth Settings"]
---

# Patch Mappings by Team ID

`PATCH /v3/identity-provider/team-group-mappings`

Allows partial updates to the mappings between Konnect Teams and Identity Provider Groups.
The request body must be keyed on team ID. For a given team ID, the given group list is a
complete replacement. To remove all mappings for a given team, provide an empty group list.

Returns a 400 error if an Identity Provider has not yet been configured, or if a team ID in
the request body is not found or is not a UUID.

## Request body

- object
  - `data` object[] — The IdP groups to map to the given team.
    - `team_id` string, uuid
    - `groups` string[]

## Response `200`

A paginated collection of mappings grouped by team_id.

- object
  - `meta` PaginatedMeta — returns the pagination information
    - `page` PageMeta, required — Contains pagination query parameters and the total number of objects returned.
      - `number` number, required
      - `size` number, required
      - `total` number, required
  - `data` TeamGroupMapping[]
    - `team_id` string, uuid — The Konnect team ID.
    - `groups` string[] — The IdP groups that are mapped to the specified team.

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Permission denied

---

[API](https://skmtc.net/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/versions/f920f418f552/schema)
