Skip to main content
PUT
/
applications
/
{application_id}
/
role-connections
/
metadata
cURL
curl --request PUT \
  --url https://discord.com/api/v10/applications/{application_id}/role-connections/metadata \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "type": 123,
    "key": "<string>",
    "name": "<string>",
    "description": "<string>",
    "name_localizations": {},
    "description_localizations": {}
  }
]
'
[
  {
    "type": 123,
    "key": "<string>",
    "name": "<string>",
    "description": "<string>",
    "name_localizations": {},
    "description_localizations": {}
  }
]

Authorizations

Authorization
string
header
required

Discord bot token

Path Parameters

application_id
string<snowflake>
required

Body

application/json
Maximum array length: 5
type
required

the metadata value (integer) is less than or equal to the guild's configured value (integer)

key
string
required
Required string length: 1 - 50
name
string
required
Required string length: 1 - 100
description
string
required
Required string length: 1 - 200
name_localizations
object
description_localizations
object

Response

object[] | null

200 response for update_application_role_connections_metadata

type
required

the metadata value (integer) is less than or equal to the guild's configured value (integer)

key
string
required
name
string
required
description
string
required
name_localizations
object
description_localizations
object