All pages
Powered by GitBook
1 of 2

Loading...

Loading...

/group-role

An premium membership plan for the workspace is required to use this endpoint!

RankingAPI

Change Group Rank

patch
Authorizations
HTTPRequired

Jwt Auth: Authenticated requests contain a valid Json Web Token (JWT) as part of the Authorization: Bearer <JWT> header.

Your Sentinel API Key

Body
userIdnumberRequired

Roblox User ID

groupIdnumberRequired

Roblox Group ID

rankIdnumberRequired

Roblox Rank ID (1-255) not Role ID.

Responses
200

User was ranked

application/json
402

Workspace does not have Tier 2 (Premium) membership or higher.

application/json
500

An error occured while communicating with Roblox.com to change rank.

This usually happens as either;

  • Roblox is down
  • Your Roblox Open Cloud API key cannot access that Group
  • You did not link an Roblox Open Cloud API key
  • Your Roblox Open Cloud API key is expired
application/json
patch
/group-role
{
  "status": "ok"
}
PATCH /api/v1/group-role HTTP/1.1
Host: sentinel.metatable.dev
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "userId": 1,
  "groupId": 1,
  "rankId": 1
}