OAuth2

Update application

Modifies OAuth2 application configuration such as name, description, and redirect URIs. Does not rotate credentials.

patch/oauth2/applications/{id}

Path parameters

string snowflake required
OR
integer required

The ID of the application

Request body

namestring

The name of the application

bot_publicboolean

Whether the bot can be invited by anyone

bot_require_code_grantboolean

Whether the bot requires OAuth2 code grant

redirect_urisstring[] nullable

The redirect URIs for OAuth2 flows

Response

Success

idstring snowflake required
namestring required

The name of the application

redirect_urisstring[] required

The registered redirect URIs for OAuth2

bot_publicboolean required

Whether the bot can be invited by anyone

bot_require_code_grantboolean required

Whether the bot requires OAuth2 code grant

client_secretstring

The client secret for OAuth2 authentication

Changes