API referenceDiscord
PUT /discord/guilds/{guildId}/members/{userId}/roles/{roleId}
Assign a role to a member (idempotent; @everyone is refused; the role must sit below the bot's highest role)
PUT
BearerAuthheader
AuthorizationBearer <token>API key sk_...
guildId*stringDiscord server (guild) id
userId*stringUser id
roleId*stringRole id
accountId*stringDiscord account id bound to this server (or the channel's server)
Done
application/json- response
success?booleanoperation?"role_assigned"Value in
"role_assigned"guildId?stringuserId?stringroleId?stringcurl -X PUT 'https://example.com/api/v1/discord/guilds/string/members/string/roles/string?accountId=string'Example Response
{ "success": true, "operation": "role_assigned", "guildId": "string", "userId": "string", "roleId": "string"}