Skip to main content
PUT
/
users
/
@me
/
applications
/
{application_id}
/
role-connection
cURL
curl --request PUT \
  --url https://discord.com/api/v10/users/@me/applications/{application_id}/role-connection \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "platform_name": "<string>",
  "platform_username": "<string>",
  "metadata": {}
}
'
{
  "platform_name": "<string>",
  "platform_username": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

application_id
string<snowflake>
required

Body

application/json
platform_name
string | null
Maximum string length: 50
platform_username
string | null
Maximum string length: 100
metadata
object

Response

200 response for update_application_user_role_connection

platform_name
string | null
platform_username
string | null
metadata
object