Update an OAuth2 application, this includes regenerating the client secret
PATCH
/user/applications/oauth2/{id}
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” id
required
integer format: int64
Application to be updated
Request Body
Section titled “ Request Body ”CreateOAuth2ApplicationOptions holds options to create an oauth2 application
object
confidential_client
boolean
name
string
redirect_uris
Array<string>
Example generated
{ "confidential_client": true, "name": "example", "redirect_uris": [ "example" ]}CreateOAuth2ApplicationOptions holds options to create an oauth2 application
object
confidential_client
boolean
name
string
redirect_uris
Array<string>
Responses
Section titled “ Responses ”OAuth2Application
Media type application/json
OAuth2Application represents an OAuth2 application.
object
client_id
string
client_secret
string
confidential_client
boolean
created
string format: date-time
id
integer format: int64
name
string
redirect_uris
Array<string>
Example generated
{ "client_id": "example", "client_secret": "example", "confidential_client": true, "created": "2026-04-15T12:00:00Z", "id": 1, "name": "example", "redirect_uris": [ "example" ]}APIUnauthorizedError is a unauthorized error response
Media type application/json
object
message
string
url
string
Example generated
{ "message": "example", "url": "example"}APIForbiddenError is a forbidden error response
Media type application/json
object
message
string
url
string
Example generated
{ "message": "example", "url": "example"}APINotFound is a not found error response
Media type application/json
object
errors
Array<string>
message
string
url
string
Example generated
{ "errors": [ "example" ], "message": "example", "url": "example"}