Skip to main content

Add player to access group

Add a player to an access group with specified membership type and duration. ⚠️ This action has a cooldown of 5 seconds, per player.

Path Parameters
uuid uuid REQUIRED

UUID of the player

groupId integer REQUIRED

ID of the access group

Request Body REQUIRED
period string REQUIRED

Duration period. Available options include:

  • Minute-based: 15m (15 minutes), 30m (30 minutes), 45m (45 minutes)
  • Hour-based: 1h (1 hour), 2h (2 hours), 3h (3 hours), 4h (4 hours), 5h (5 hours), 6h (6 hours), 12h (12 hours)
  • Day-based: 1d (1 day), 2d (2 days), 3d (3 days), 4d (4 days), 5d (5 days), 6d (6 days)
  • Week-based: 1w (1 week), 2w (2 weeks), 3w (3 weeks)
  • Month-based: 1m (1 month), 2m (2 months), 3m (3 months), 4m (4 months), 5m (5 months), 6m (6 months), 7m (7 months), 8m (8 months), 9m (9 months), 10m (10 months), 11m (11 months)
  • Year-based: 1y (1 year)
  • Special: 0 (forever), eod (end of day), eow (end of week), eom (end of month), eoy (end of year)
membership_type integer REQUIRED

Possible values: [0, 1, 2]

Membership type: 0=Member, 1=Trial, 2=Priority

Responses
200

successful operation

Schema OPTIONAL
data string OPTIONAL
400

Invalid input

Schema OPTIONAL
error string OPTIONAL
404

Player or access group not found

Schema OPTIONAL
error string OPTIONAL
429

Too many requests

Schema OPTIONAL
error string OPTIONAL