Permissions

Add New Permission

POST /permissions/new/permission/[ Group Id ]

This will create a new permission for a group

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Body

Name
Type
Description

permissionId

UUIDv4

Database Id for the permission

permission

string

In-game permission

cooldown

number

Cooldown for the user

Request

Name
Type
Description

Group Id

UUIDv4

Database Id for a group

Response

{
    "created": boolean
}

Delete permission

DELETE /permissions/delete/permission/[ Permission Id ]

This will delete a permission from an id.

Headers

Name
Value

Content-Type

application/json

Authorization

<key>

Request

Name
Type
Description

Permission Id

UUIDv4

Database Id for the permission

Response

Get Permission From Id

GET /permissions/get/permissions/id/[ Permission Id ]

This will return a permission from an id.

Headers

Name
Value

Content-Type

application/json

Request

Name
Type
Description

Permission Id

UUIDv4

Database Id for the permission

Response

If can find permission from id:

If cannot find permission with id:

Get Permission Cooldown

GET /permissions/get/permissions/cooldown/[ Permission Id ]

This will return a permissions cooldown from an id.

Headers

Name
Value

Content-Type

application/json

Request

Name
Type
Description

Permission Id

UUIDv4

Database Id for the permission

Response

Last updated