Permissions

You can manage permissions with this endpoint. We recommend using binary permission integers for the best use.

Get Permissions

GET https://accountable.pixelninja.dev/:token/user/:uuid/permissions

This will give you the user's permission level. You can use this endpoint 5 times per second.

Path Parameters

Name
Type
Description

token

string

This is your API token.

uuid

string

The UUID of the user you wish to get the permissions value of

128

Edit Permissions

PUT https://accountable.pixelninja.dev/:token/user/:uuid

This allows you to overwrite a user's permission level. You can use this endpoint 3 times per second.

Path Parameters

Name
Type
Description

token

string

This is your API token.

uuid

string

This is the UUID of the user whose permissions you want to overwrite.

Request Body

Name
Type
Description

value

number

This is the value you are overwriting with.

{ "code": 202, "message": "Accepted" }

Clear Permissions

DELETE https://accountable.pixelninja.dev/:token/user/:uuid/permissions

This will set the user's permissions to 0. This helps to relieve ratelimits from using a PUT request. You can use this endpoint 3 times per second.

Path Parameters

Name
Type
Description

token

string

This is your API token.

uuid

string

This is the UUID of the user whose permissions you are resetting.

{ "code": 204, "message": "No content" }

Last updated

Was this helpful?