v2

latestOpenAPI 3.0.0AGPLv32026-07-26125148364.7 KB
Server Permissions

Edits server roles ranks

Edit's server role's ranks.

patch/servers/{target}/roles/ranks

Path parameters

targetstring required

Headers

X-Audit-Log-Reasonstring

Reason for action which is stored in the audit log.

Request body

ranksstring[] required

Response

_idstring required

Unique Id

ownerstring required

User id of the owner

namestring required

Name of the server

descriptionstring nullable

Description for the server

channelsstring[] required

Channels within this server

rolesobject

Roles for this server

default_permissionsinteger required

Default set of server and channel permissions

flagsinteger

Bitfield of server flags

nsfwboolean

Whether this server is flagged as not safe for work

analyticsboolean

Whether to enable analytics

discoverableboolean

Whether this server should be publicly discoverable