Add an Open Cloud endpoint for getting the version of a place

As a Roblox developer, it is currently difficult to get what version information about places without uploading a new copy of the place. This is because there exists no Open Cloud endpoint to get that information, so the only way to get it via Open Cloud is via the place uploading endpoint, which happens to return it.

The place version is very important for performing tasks with the Luau execution endpoints. While you can technically create tasks for the latest version of the place, it is safer to use a fixed version for CI tasks to avoid problems.

Right now, the only way to get a place version is either via the Place publishing API or a legacy cookie-based endpoint which I could not even find the documentation for (for posterity, it is https://develop.roblox.com/v1/assets/{asset_id}/versions). Obviously using cookies is undesirable, and uploading a new place just to get a version number is silly.

If Roblox were to add a way to get the place version via open cloud endpoints, I’d be happy and I could stop using a cookie-authenticate endpoint for running open cloud execution tasks.

5 Likes

Thanks for the feedback, totally makes sense. Are you more interested in being able to get the latest version of a place, list all versions of a place, or both?

1 Like

I’m most interested in getting the latest version of a place. My use cases don’t involve needing the full version history. A full list would obviously work for this too though, so either one works.

Gotcha - does ListAssetVersions do what you need?

…I feel like I’m taking crazy pills because I looked for an API to do this before making this request. You gotta believe me!

Yeah, that works. Though it does require some post-processing to get the version from the returned path field, that’s trivial in any language where it matters.

2 Likes

It’s in assets/v1 rather than cloud/v2, which makes it easy to miss. Glad we have what you need, anyway. :slight_smile:

1 Like