I tried to make an API that changes the price of the dev product but it keeps telling me that I am unauthorized.
the api came from roblox itself on this site
https://develop.roblox.com/docs#!/DeveloperProducts/post_v1_universes_universeId_developerproducts
this is my script
local http = game:GetService('HttpService')
api = 'https://develop.rprxy.xyz/v1/universes/109762583/developerproducts/1196805938/update'
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player, price)
local UpdatInfo = {
["Name"] = "test API2",
["Description"] = "test api",
["IconImageAssetId"] = 0,
["PriceInRobux"] = 100
}
local NewSendData = http:JSONEncode(UpdatInfo)
http:PostAsync(api,NewSendData)
end)
I tried to use the https://develop.roblox.com but it didn’t work because roblox won’t allow this (found it on the dev forum) so I used another recommended (rprxy.xyz)
can someone help me with this issue?