---
title: "Update OAuth2 client configuration (RFC 7592)"
method: PUT
path: "/oauth2/clients/{client_id}"
tags: ["Enterprise"]
---

# Update OAuth2 client configuration (RFC 7592)

`PUT /oauth2/clients/{client_id}`

## Path parameters

- `client_id` string, required

## Request body

- CodersdkOAuth2ClientRegistrationRequest
  - `client_name` string
  - `client_uri` string
  - `contacts` string[]
  - `grant_types` CodersdkOAuth2ProviderGrantType[]
  - `jwks` object
  - `jwks_uri` string
  - `logo_uri` string
  - `policy_uri` string
  - `redirect_uris` string[]
  - `response_types` CodersdkOAuth2ProviderResponseType[]
  - `scope` string
  - `software_id` string
  - `software_statement` string
  - `software_version` string
  - `token_endpoint_auth_method` 'client_secret_basic' | 'client_secret_post' | 'none'
  - `tos_uri` string

## Response `200`

OK

- CodersdkOAuth2ClientConfiguration
  - `client_id` string
  - `client_id_issued_at` integer
  - `client_name` string
  - `client_secret_expires_at` integer
  - `client_uri` string
  - `contacts` string[]
  - `grant_types` CodersdkOAuth2ProviderGrantType[]
  - `jwks` object
  - `jwks_uri` string
  - `logo_uri` string
  - `policy_uri` string
  - `redirect_uris` string[]
  - `registration_access_token` string
  - `registration_client_uri` string
  - `response_types` CodersdkOAuth2ProviderResponseType[]
  - `scope` string
  - `software_id` string
  - `software_version` string
  - `token_endpoint_auth_method` 'client_secret_basic' | 'client_secret_post' | 'none'
  - `tos_uri` string

---

[API](https://skmtc.net/coder/apis/coder-api.md) · [All operations](https://skmtc.net/coder/apis/coder-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coder/coder-api/versions/56b6e9f08540/schema)
