listAssetVersions example is completely wrong

The listAssetVersions endpoint documentation has a very incorrect example. Because try it out is disabled for open cloud - there’s no way to know this until after you’ve written a serializer for the incorrect type.

The example given is:

[
  {
    "creationContext": {
      "assetPrivacy": "default",
      "creator": {
        "userId": 0,
        "groupId": 0
      }
    },
    "path": "string",
    "createTime": "2026-11-05T06:53:47.207Z",
    "moderationResult": {
      "moderationState": "string"
    },
    "published": true
  }
]

Meanwhile, the live endpoint returns:

{
  "assetVersions": [
    {
      "path": "assets/109895577185385/versions/7",
      "createTime": "2026-11-05T02:59:34.029Z",
      "creationContext": {
        "creator": {
          "userId": "507608357"
        }
      },
      "moderationResult": {
        "moderationState": "Approved"
      },
      "published": true
    },
    ...
  ],
  "nextPageToken": "BBBBB=="
}

This has several inconsistencies:

  • The response is not just an array, but an object with assetVersions containing the array
  • The userIds are clearly shown as numbers, but are strings here
  • nextPageToken is missing entirely
  • Instead of published being false, it is just missing when not published
  • No example path is given, just “string”

There are also several minor improvements that could be made:

  • userId and groupId are shown when clearly it will be one or the other - a note at least would be nice
  • assetPrivacy does not appear for every asset type (such as places)

Notably, this issue existing in the openapi.json:

          "200": {
            "description": "Asset versions listed successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AssetVersion"
                  }
                }
              }
            }
          },

I would at least expect the openapi.json to be inline with the code that returns the response so that these inconsistencies in documentation are not possible - this is a pretty big difference in expected vs reality.

Page URL: https://create.roblox.com/docs/cloud/reference/features/assets?auth=none%2Croblox-api-key#listAssetVersions