I am learning about HTTP requests, and using Roblox web API to test things.
While 90% of GET requests are passing normally, all of my POST requests are getting declined by Roblox, returning 403 error message.
For example, I am currently trying to decline friend requests from a certain user (ID 1241698203) via POST request. I am using python 3.7 and the "requests" module.
My code:
import requests
import pprint
urlname = 'https://api.roblox.com/user/decline-friend-request'
user = 1241698203
data = {'requesteruserid': user}
post_request = requests.post(url=urlname, data=data)
post_request_json = post_request.json()
print(post_request.status_code)
pprint.pprint(post_request_json)
Am I doing something wrong, and do I need to complete some sort of authentication beforehand through my program?
I appreciate all the help!
P.S. I am new to coding, so apologies if my code looks messy/not efficient :)

1 comment
As I understand, it only applies to in-game requests. However, I am trying to run the code from not from the game, but from my own separate desktop application. Also, if Roblox was forbidding all requests, then GET requests would also be denied, right?