Set Rank
Set the rank of a Roblox user to a specific role in the group.
Header Parameters
x-api-key*string
Your workspace API key.
Request Body
application/json
userId*integer
The Roblox user ID to rank.
rankId*integer
The target Roblox group rank ID (0-255).
reason?string
Optional reason for the rank change.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.rankgun.works/api/roblox/setrank" \ -H "x-api-key: string" \ -H "Content-Type: application/json" \ -d '{ "userId": 123456789, "rankId": 10, "reason": "Promoted to moderator" }'{
"success": true,
"oldRank": 0,
"newRank": 0,
"username": "string"
}{
"success": false,
"error": "string"
}{
"success": false,
"error": "string"
}{
"success": false,
"error": "string"
}{
"success": false,
"error": "string"
}{
"success": false,
"error": "string"
}Was this page helpful?