Skip to main content
POST
Revoke roles

Body

application/json
resource_ids
string<snowflake>[]
required
role_ids
string<snowflake>[]
required
team_ids

Teams to revoke from the role. Omitting it removes the role from the resources entirely. Sending "" revokes every team and keeps the role assigned on no team, as does revoking its last remaining teams. Revoking specific teams from a role held on "" turns it into the explicit list of the remaining enabled teams, which no longer follows the teams created afterwards. An empty array is rejected.

Available options:
*
Example:

"*"

Response

204

Resource roles revoked.