Add custom role to player
Add a custom role to a player with a specified duration. ⚠️ This action has a cooldown of 5 seconds, per player.
| Path Parameters |
|---|
uuid uuid — REQUIREDUUID of the player |
roleId integer — REQUIREDID of the custom role to add |
| Request Body — REQUIRED |
|---|
period string — REQUIREDDuration period (required if type is 'period'). Available options include:
|
| Responses | ||
|---|---|---|
200successful operation
| ||
400Invalid input
| ||
404Player or role not found
| ||
429Too many requests
|