New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

Set OAuth 2.0 Client

PUT 

/admin/clients/:id

Replaces an existing OAuth 2.0 Client with the payload you send. If you pass client_secret the secret is used, otherwise the existing secret is used.

If set, the secret is echoed in the response. It is not possible to retrieve it later on.

OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.

SDK ReferenceTypeScript
setOAuth2Client(oAuth2Client)
ParametersTypeRequiredDescription
oAuth2ClientOAuth2ClientrequiredOAuth 2.0 Client Request Body
idstringrequiredOAuth 2.0 Client ID
VariableType
dataOAuth2Client