Skip to main content
POST
Grant roles

Body

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

Omitting it, or sending an empty array, grants a bare role (on no team) on a new assignment and leaves the teams of an existing one untouched. Sending "*" scopes the role to every team, which supersedes the teams already granted. A disabled team is rejected: it is no target for a role.

Available options:
*
Example:

"*"

Response

204

Resource roles granted.