/clans/{clanId}/members/{robloxId}
Sets a member's rank directly. On a Linked clan the change is written to the Roblox group first and mirrored locally only once Roblox accepts.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
clanId | string | required | The clan's identifier. |
robloxId | string | required | The member's Roblox user ID. |
Body
| Name | Type | Required | Description |
|---|---|---|---|
rankId | string | required | Target rank. Must belong to this clan. |
local HttpService = game:GetService("HttpService")
local response = HttpService:RequestAsync({
Url = "https://api.example.invalid/v0/clans/CLAN_ID/members/ROBLOX_ID",
Method = "PATCH",
Headers = {
["Authorization"] = "Bearer YOUR_CLAN_API_KEY",
["Content-Type"] = "application/json",
},
Body = HttpService:JSONEncode({
rankId = "RANK_ID",
}),
})
if response.Success then
print(HttpService:JSONDecode(response.Body))
else
warn(response.StatusCode, response.Body)
endUpdated member.
{
"robloxId": "ROBLOX_ID",
"rank": "Captain"
}