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
token
string
This is your API token.
uuid
string
The UUID of the user you wish to get the permissions value of
128{ "code": 400, "message": "Bad request" }{ "code": 404, "message": "Not found" }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
token
string
This is your API token.
uuid
string
This is the UUID of the user whose permissions you want to overwrite.
Request Body
value
number
This is the value you are overwriting with.
{ "code": 202, "message": "Accepted" }{ "code": 400, "message": "Bad request" }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
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" }{ "code": 400, "message": "Bad request" }Last updated
Was this helpful?