OpenCloud 'UserRestriction' documentation has invalid example + is missing an endpoint

Throughout this page, the duration parameter example is 3.5s. However, this example is invalid as only a full number of seconds are accepted by the API. Attempting to use a decimal number states that the API does not accept any percision further than a full second. This means that using the curl example provided on the page will actually result in an error.

On top of this, the per-place user-restriction endpoint (/cloud/v2/universes/{universe}/places/{place}/user-restrictions/{user-restriction}) is not documented on this documentation page. While it acts very similarly to the experience-level endpoint which is documentated on the page; there is no implication to existence of this alternative endpoint, and I only found it through trial-and-error.

Page URL: https://create.roblox.com/docs/cloud/reference/UserRestriction

Thanks for the feedback! We’ll look into fixing the duration example.

Regarding the other endpoint: as you scroll down the page, you should see a dropdown appear at the top that will let you select the resource hierarchy with places/{place}.

But I think there’s some implicit UX/discoverability feedback here, and I’ll pass that along too.

1 Like

Good news – we’ve just updated the documentation. Thanks for reporting it!

1 Like