Permissions
Add New Permission
POST /permissions/new/permission/[ Group Id ]
This will create a new permission for a group
Headers
Content-Type
application/json
Authorization
<key>
Body
permissionId
UUIDv4
Database Id for the permission
permission
string
In-game permission
cooldown
number
Cooldown for the user
Request
Group Id
UUIDv4
Database Id for a group
Response
{
"created": boolean
}{
"error": {
"code": 400,
"message": "Could not create a new permission for a group"
},
"catchError": "string"
}If authorization header not provided:
{
"error": {
"code": 403
"message": "Please specify an authorization key!"
}
}If invalid authorization key:
{
"error": {
"code": 403,
"message": "Invalid authorization Key!"
}
}Delete permission
DELETE /permissions/delete/permission/[ Permission Id ]
This will delete a permission from an id.
Headers
Content-Type
application/json
Authorization
<key>
Request
Permission Id
UUIDv4
Database Id for the permission
Response
If authorization header not provided:
If invalid authorization key:
Get Permission From Id
GET /permissions/get/permissions/id/[ Permission Id ]
This will return a permission from an id.
Headers
Content-Type
application/json
Request
Permission Id
UUIDv4
Database Id for the permission
Response
If can find permission from id:
If cannot find permission with id:
If authorization header not provided:
If invalid authorization key:
Get Permission Cooldown
GET /permissions/get/permissions/cooldown/[ Permission Id ]
This will return a permissions cooldown from an id.
Headers
Content-Type
application/json
Request
Permission Id
UUIDv4
Database Id for the permission
Response
Last updated