v3

latestOpenAPI 3.0.0AGPLv32026-08-07125148365.6 KB
Server Permissions

Set Default Permission

Sets permissions for the default role in this server.

put/servers/{target}/permissions/default

Path parameters

targetstring required

Headers

X-Audit-Log-Reasonstring

Reason for action which is stored in the audit log.

Request body

permissionsinteger 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

approximate_member_countinteger required

Approximate amount of members in the server