Server Permissions

Set Role Permission

Sets permissions for the specified role in the server.

put/servers/{target}/permissions/{role_id}

Path parameters

targetstring required
role_idstring required

Headers

X-Audit-Log-Reasonstring

Reason for action which is stored in the audit log.

Request body

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

Changes

Changed in 4 of the 6 revisions of this API.23

    • added the required property oneOf[subschema #2]/locale to the response with the default status

      response-required-property-added

    • added subschema #2 to the response body oneOf list for the response status default

      response-body-one-of-added

    • added the required property approximate_member_count to the response with the 200 status

      response-required-property-added

  • 7a23c8b9376611See the full diff
    • added subschema #65 subschema #66 subschema #67 subschema #81 subschema #82 subschema #83 subschema #84 subschema #85 subschema #86 subschema #87 subschema #88 subschema #89 subschema #90 subschema #91 subschema #92 subschema #93 subschema #94 subschema #95 to the response body oneOf list for the response status default

      response-body-one-of-added

    • added the new optional header request parameter X-Audit-Log-Reason

      new-optional-request-parameter

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog