---
title: "UpdateOIDCConfig"
method: POST
path: "/gitpod.v1.OrganizationService/UpdateOIDCConfig"
tags: ["gitpod.v1.OrganizationService"]
---

# UpdateOIDCConfig

`POST /gitpod.v1.OrganizationService/UpdateOIDCConfig`

Updates the OIDC token configuration for an organization.

 Use this method to:
 - Switch between OIDC token versions (V2 or V3)
 - Configure extra sub claim fields (V3 only)

 ### Examples

 - Enable V3 tokens with extra sub fields:

   ```yaml
   organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
   oidcConfig:
     v3:
       extraSubFields:
         - "environment_id"
         - "creator_email"
   ```

 - Switch back to V2 tokens:

   ```yaml
   organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
   oidcConfig:
     v2: {}
   ```

## Request body

- GitpodV1UpdateOIDCConfigRequest — unresolved $ref

## Response `200`

Success

- GitpodV1UpdateOIDCConfigResponse — unresolved $ref

## Other responses

- `default` — Error

## Changes

> 18 revisions in range; 1 could not be searched.

- **2026-04-02** `dabc0ff98cd7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.OrganizationService/UpdateOIDCConfig/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
