---
title: "Update a group mapping"
method: PATCH
path: "/group-mappings/{provenance}/{externalGroup}"
tags: ["Group Mappings"]
---

# Update a group mapping

`PATCH /group-mappings/{provenance}/{externalGroup}`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/group-mappings/{provenance}/{externalGroup}`
- Auth: none declared

Updates a group mapping.

## Path parameters

- `provenance` string, required
- `externalGroup` string, required

## Request body

- object
  - `updates` GroupMappingsProvenanceExternalGroupPatchRequestBodyContentApplicationJsonSchemaUpdates
    - `iapGroups` string[]

## Response `200`

The output of the group mapping update.

- GroupMappingsSsoGroupMappingsUpdateGroupMappingResponse200
  - `status` 'OK' | 'Created': The status of the API request.
  - `message` string: Message containing either confirmation of the operation or the reason for the failure of the operation.
  - `data` IapMappingSchema: This is the schema for an IAP group mapping stored in Mongo
    - `externalGroup` string, required: name of the external group
    - `provenance` string, required: The AAA provider for the external group
    - `iapGroups` string[], required

## Other responses

- `500`: Error response from API

## Changes

- **2026-10-31** `2095cc90e583`: 2 info
  - api tag `Group Mappings` added
  - api tag `groupMappings` removed

[Operation history](https://skmtc.dev/itential/apis/itential-2/changes/group-mappings/:provenance/:externalGroup/patch.md)

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
