Updates the specified webhook with new settings such as name, avatar, or target channel. All fields are optional. Returns the updated webhook object.
curl --request PATCH \
--url https://api.fluxer.app/v1/webhooks/{webhook_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"avatar": "aSDinaTvuI8gbWludGxpZnk=",
"channel_id": "<string>"
}
'{
"id": "<string>",
"guild_id": "<string>",
"channel_id": "<string>",
"name": "<string>",
"token": "<string>",
"user": {
"id": "<string>",
"username": "<string>",
"discriminator": "<string>",
"global_name": "<string>",
"avatar": "<string>",
"avatar_color": 1073741823,
"flags": 1073741823,
"bot": true,
"system": true
},
"avatar": "<string>"
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
The ID of the webhook
Success
The unique identifier (snowflake) for the webhook
The ID of the guild this webhook belongs to
The ID of the channel this webhook posts to
The display name of the webhook
The secure token used to execute the webhook
Show child attributes
The hash of the webhook avatar image
curl --request PATCH \
--url https://api.fluxer.app/v1/webhooks/{webhook_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"avatar": "aSDinaTvuI8gbWludGxpZnk=",
"channel_id": "<string>"
}
'{
"id": "<string>",
"guild_id": "<string>",
"channel_id": "<string>",
"name": "<string>",
"token": "<string>",
"user": {
"id": "<string>",
"username": "<string>",
"discriminator": "<string>",
"global_name": "<string>",
"avatar": "<string>",
"avatar_color": 1073741823,
"flags": 1073741823,
"bot": true,
"system": true
},
"avatar": "<string>"
}