---
title: "Update OAuth configuration"
method: PUT
path: "/projects/{id}/oauth/configs/{provider}"
tags: ["OAuth Configuration"]
---

# Update OAuth configuration

`PUT /projects/{id}/oauth/configs/{provider}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/oauth/configs/{provider}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Path parameters

- `id` string, uuid, required
- `provider` 'google' | 'github' | 'microsoft' | 'apple' | 'device', required

## Query parameters

- `client_id` string

## Request body

- UpdateOAuthConfigRequest
  - `client_id` string: Supported for non-device providers. Not supported for `provider=device`.
  - `client_secret` string: Supported for non-device providers. Not supported for `provider=device`.
  - `redirect_url` string, uri
  - `scopes` string[]
  - `enabled` boolean

## Response `200`

OAuth config updated

- OAuthConfig
  - `id` string, uuid
  - `provider` 'google' | 'github' | 'microsoft' | 'apple' | 'device'
  - `client_id` string
  - `client_secret` string: Masked in responses (shows only first/last 4 chars)
  - `enabled` boolean
  - `redirect_url` string, uri
  - `scopes` string[]
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 3 breaking, 14 info
  - added the new path request parameter `id`
  - the request's body type changed from no type to `object`
  - the response's body type changed from no type to `object` for status `200`
  - added the new optional request property `client_id`
  - …13 more
- **2026-08-27** `bb44e98aba2e`: 2 breaking, 15 warning
  - the request's body type changed from `object` to no type
  - the response's body type changed from `object` to no type for status `200`
  - deleted the `path` request parameter `id`
  - removed the request property `client_id`
  - …13 more

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/oauth/configs/:provider/put.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
