I do not know if i am posting this in the right category!
So i was just using Swagger UI’s Update Description API To update my description in roblox but i had a problem, it always responds with 401 Unauthorized. Here is my link i use.
https://users.roblox.com/v1/description
And here is the JSON response body.
{"errors":[{"code":0,"message":"Unauthorized"}]}
Here is my content body for requesting
{
“description”: “test”
}
I think this error is returned when you don’t create an authenticated session, basically roblox wants you to send the request as a signed in user, but you’re sending it as a guest who hasn’t signed in.
The cause of the error is that you did not include the .ROBLOSECURITY in the cookies.
In cookies you need:
.ROBLOSECURITY: _|WARNING...
And in the headers:
X-CSRF-Token: <random>...
You can get the .ROSEC from inspect element → storage → .ROBLOSECURITY (FireFox)
You can get the X-CSRF-Token from https://auth.roblox.com/v2/logout (.ROSEC required)