Can i give group roles in roblox using the api?

local Cookie = "_|WARNING:-DO-NOT-SHARE-THIS.--Sharing-this-will-allow-someone-to-log-in-as-you-and-to-steal-your-ROBUX-and-items.|_Werenostrangerstolove"
local BrowserToken = "i think i cant share this i dont know what it means"

local function GiveRank(GroupId, Id, Rank)
	local Link = `https://groups.roproxy.com/v1/groups/{GroupId}/users/{Id}`
	
	task.spawn(function() -- no yield
		print(pcall(function() -- no errors
			return HttpService:RequestAsync({
				Url = Link,
				Method = "PATCH", -- i think this is not supported
				Body = HttpService:JSONEncode({
					["roleId"] = tostring(Rank)
				}),
				Headers = {
					["X-CSRF-TOKEN"] = BrowserToken,
					[".ROBLOSECURITY"] = Cookie, -- invalid character `.` and `|`
					["Referer"] = "https://www.roblox.com/",
					["Origin"] = "https://www.roblox.com"
				}
			})
		end))
	end)
end

The code above me is a failed attempt of me setting some random dude’s role to an admin, Is there a possible way to set a role without learning php or glitch or setting up a whole website thing?

There are no other people who tried to do this in roblox before I think

you can just say no, if no one has done it then its probably impossible

Never seen this done by a roblox group so I doubt it was done using the API. Most roblox groups I’ve seeen either manually give roles or they program it through another coding language outside of roblox’s API.

yes, there are roleplay groups like cafes, hospitals and others who uses this. but i dont know how exactly they do this.

i assume those stuff are just sending http requests, luau can do that too.