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

## Changes

- **2025-10-30** `845120e19d45` — 3 breaking
  - the request property `data` became not nullable
  - the request property `data/items/groups` became not nullable
  - the request property `data/items/team_id` became not nullable
- **2025-10-23** `8ab3ec3ed301` — 1 warning
  - added the new `type` enum value to the `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
- **2025-08-22** `3c0154b2053a` — 8 breaking, 3 info
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterChoiceItem]/source` became nullable for the status `400`
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterDependentItem]/source` became nullable for the status `400`
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterMaximumLength]/source` became nullable for the status `400`
  - the response property `allOf[subschema #2]/invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterMinimumLength]/source` became nullable for the status `400`
  - …7 more

[Change history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v3/identity-provider/team-group-mappings/patch.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.dev/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kong/konnect-api-go-sdk/revisions/7d3c634668f8/schema)
