Move role
/api/roles/{id}/moveMove a role one place up or down in the order. A person's rank is their highest role. Refused for a role that is not below your highest role, and for a move that would put a role at your own place or above it. Administrator is always first. Returns the roles in their new order.
Needs the ManageRoles permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/roles/497f6eca-6276-4993-bfeb-53cbbbba6f08/move" \ -H "Content-Type: application/json" \ -d '{ "direction": "string" }'{ "roles": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "description": "string", "permissionNames": [ "string" ], "isBuiltIn": true, "locked": true, "userCount": 0, "position": 0 } ], "permissions": [ { "name": "string", "value": 0, "label": "string", "description": "string", "group": "string" } ]}Update role PUT
Change a role's name, description or permissions. Takes effect for everyone holding the role on their next request. Refused unless the role is below your highest role. Needs the `ManageRoles` permission.
Get staff roles from Discord GET
Which Discord roles give which Modbot roles, the switch, and when the pass last ran. Needs the `ManageUsers` and `ManageRoles` permissions.