Skip to content

Swap to using new endpoints for upload command - #1355

Open
Dekkonot wants to merge 13 commits into
rojo-rbx:masterfrom
Dekkonot:upload-endpoint-swap
Open

Dekkonot wants to merge 13 commits into
rojo-rbx:masterfrom
Dekkonot:upload-endpoint-swap

Conversation

@Dekkonot

@Dekkonot Dekkonot commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Roblox has requested that we swap to a new endpoint for uploading files. This is because this endpoint sends things through their asset pipeline, which allows it to do things like granting asset permissions and will allow it to do things like support the drafts feature which is coming soon(tm).

However, this isn't a straightforward change because it goes from a simple send-and-forget request to one that requires polling. So, here we are. A happy side effect of this case is that we no longer need to pass --universe_id to upload places.

A downside is that this requires new scopes for API keys. I've tried to document that as best I can, but someone is inevitably going to get shot in the foot by this. I think there's only so much we can do on that front though.

I also took the time to fix uploading with Cookies (even though Roblox don't document this endpoint, I can observe it directly within Studio and its usage is the same as the documented one, only with a cookie), and to enable kebab-case for parameters because it's always bothered me.

I've tried to make this code reusable when I can, and to reduce duplication. The result is a bit messy when it comes to passing authentication and CSRF tokens but is otherwise pretty nice.

@Dekkonot Dekkonot added the scope: cli Relevant to the Rojo CLI label Nov 3, 2026
@Dekkonot

Dekkonot commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

...I failed to consider the logistics of tests on GitHub and it has become late. I will fix those tomorrow, if they can be fixed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: cli Relevant to the Rojo CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant