curl -X POST "https://apis.roblox.com/universes/v1/{universeid}/places/{placeid}/versions?versionType=Published" \
-H "x-api-key: api_key" \
-H "Content-Type: application/octet-stream" \
-H "Accept: application/json" \
--data-binary "@./build.rbxl"
{"code":"Unauthorized","message":"User unauthorized to update place. reason: [Unauthorized]."}
My key has the universe-places:write scope and I am able to open the place in studio and publish versions .
The universe and place ids are also correct.
Setting versionType=Saved works with the same api key and ids
Endpoint Docs https://create.roblox.com/docs/cloud/reference/features/universes#Places_CreatePlaceVersionApiKey