-
What do you want to achieve? I want to publish my game through a place file using Python’s
requests
library. -
What is the issue? I am getting 401 errors whenever I try to publish. (401 means Not Authorized)
-
What solutions have you tried so far? I’ve searched everywhere, and haven’t found anything to help.
Here's my Python code
import requests
gameId = 3677080772
placeId = 9975496142
apiKey = "removed"
fullURL = "https://apis.roblox.com/universes/v1/" + str(gameId) + "/places/" + str(placeId) + "/versions?versionType=Published"
headers = {'x-api-key': apiKey, 'Content-Type': 'application/octet-stream'}
data = "C:/Users/derpe/Downloads/Baseplate.rbxl"
x = requests.post(fullURL, data, headers, verify=True)
print(x)
And here’s my Configuration page: (bottom showing just to prove that key is updated and all IPs can access)
Thanks for any help!