Add Model To Group Inventory On Create #43
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roblox has a new capability to add assets to a group inventory to make them loadable on a group game. Take advantage of this to finally move maptest places into the staging group.
You can do this using the
https://apis.roblox.com/asset-permissions-api/v1/assets/permissionsendpoint.You'll need an account cookie and the usual x-csrf-token stuff to use it.
Using the web interface roblox provides, the request needs to be a
PATCHwith the following data:subjectType: Should never change (we are always giving a game place aka an experience aka a universe permission to use an asset)subjectId: This the id of the place we are giving the asset permission to (in this case,4422715291is the bhop maptest place from the staging group)action&enableDeepAccessCheck: I've got no clue what these do, however they are always the same ("Use" and true respectively)requests: This will contain a list of asset ids being granted access, every entry in the requests list contains theassetIdandgrantToDependencieskeys. My assumption is that the second key is to determine wether we are giving or removing access to the asset. You can also set more than 1 asset's permissions at once by simply adding more entries underrequestsImportant note: Once this call is made, there appears to be no way to undo the operation. I am unable to remove an asset's access...
Add Model To Group Inventory On Submitto Add Model To Group Inventory On CreateI'm getting 404 from my initial implementation:
Getting this error when creating a new submission and attempting to add it to the universe loadable models:
Here's the code calling into the rbx_asset crate:
Resolved on stream, commit
01985f1523should fix the problemIt does not sadly, now I'm getting http 415 response.
Genuinely no idea how that’s even possible
For posterity, this was fixed by setting the Content-Type header (to json)
384640a407I reverted #198 in
40b0af0063since Roblox requirements make it ineffective, so all it does is add new ways for submissions to fail. My plan is to implement it using the non-centralized maptest places instead until Roblox fixes the unusable feature.Closing in favour of #316.