Open Cloud V1 Assets endpoint does not support groups

The Roblox Open Cloud V1 has an assets endpoint of https://apis.roblox.com/assets/v1/assets

I have a functioning program that uses this to upload assets. However, it only works under my user. I cannot get it to upload under a group. When I try to upload under a group, it says Bad Request.

My payload for uploading as a user:

    const payload = {
        assetType: assetType,
        displayName: fileName,
        description: "Uploaded via script",
        creationContext: {
            creator: {
                userId: userId
            }
        }
    };

I use my user ID 13365322. The apiKey I am using was made under this user. And it works!

My payload for uploading as a group:

    const payload = {
        assetType: assetType,
        displayName: fileName,
        description: "Uploaded via script",
        creationContext: {
            creator: {
                groupId: groupId
            }
        }
    };

I use the group ID 3959677 for the BIG Games Pet group. The apiKey I am using was made for this group. And it doesn’t work!

I am referencing the API for the creationContext object Assets API | Documentation - Roblox Creator Hub. It says it has the attribute creator with the attribute userId or groupId.

I do not understand why I cannot upload under the group. Why am I getting “Bad Request”?

Thank you!

Haha as per usual, I tried one more time and now it works!

I think I forgot to reboot the application or something :man_facepalming:

1 Like