New docs? Check out the change log to learn more!
curl --request PUT \
--url https://discord.com/api/v10/guilds/{guild_id}/onboarding \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"prompts": [
{
"title": "<string>",
"options": [
{
"title": "<string>",
"id": "<unknown>",
"description": "<string>",
"emoji_id": "<unknown>",
"emoji_name": "<string>",
"emoji_animated": true,
"role_ids": [
"<string>"
],
"channel_ids": [
"<string>"
]
}
],
"id": "<string>",
"single_select": true,
"required": true,
"in_onboarding": true,
"type": "<unknown>"
}
],
"enabled": true,
"default_channel_ids": [
"<string>"
],
"mode": "<unknown>"
}
'{
"guild_id": "<string>",
"prompts": [
{
"id": "<string>",
"title": "<string>",
"options": [
{
"id": "<string>",
"title": "<string>",
"description": "<string>",
"emoji": {
"id": "<unknown>",
"name": "<string>",
"animated": true
},
"role_ids": [
"<string>"
],
"channel_ids": [
"<string>"
]
}
],
"single_select": true,
"required": true,
"in_onboarding": true,
"type": 123
}
],
"default_channel_ids": [
"<string>"
],
"enabled": true
}curl --request PUT \
--url https://discord.com/api/v10/guilds/{guild_id}/onboarding \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"prompts": [
{
"title": "<string>",
"options": [
{
"title": "<string>",
"id": "<unknown>",
"description": "<string>",
"emoji_id": "<unknown>",
"emoji_name": "<string>",
"emoji_animated": true,
"role_ids": [
"<string>"
],
"channel_ids": [
"<string>"
]
}
],
"id": "<string>",
"single_select": true,
"required": true,
"in_onboarding": true,
"type": "<unknown>"
}
],
"enabled": true,
"default_channel_ids": [
"<string>"
],
"mode": "<unknown>"
}
'{
"guild_id": "<string>",
"prompts": [
{
"id": "<string>",
"title": "<string>",
"options": [
{
"id": "<string>",
"title": "<string>",
"description": "<string>",
"emoji": {
"id": "<unknown>",
"name": "<string>",
"animated": true
},
"role_ids": [
"<string>"
],
"channel_ids": [
"<string>"
]
}
],
"single_select": true,
"required": true,
"in_onboarding": true,
"type": 123
}
],
"default_channel_ids": [
"<string>"
],
"enabled": true
}Discord bot token