The resource path of the user restriction.
Formats:
- universes/{universe_id}/user-restrictions/{user_restriction_id}
- universes/{universe_id}/places/{place_id}/user-restrictions/{user_restriction_id}.
Represents a restriction on a user.
The resource path of the user restriction.
Formats:
The timestamp when the user restriction was last updated. Questa stringa è formattata come Timestamp.
The affected user.
The user is banned from the parent universe or place.
https://apis.roblox.com
{
"path": "universes/123/user-restrictions/123",
"updateTime": "2023-07-05T12:34:56Z",
"user": "users/156",
"gameJoinRestriction": {
"active": true,
"startTime": "2023-07-05T12:34:56Z",
"duration": "3s",
"privateReason": "some private reason",
"displayReason": "some display reason",
"excludeAltAccounts": true,
"inherited": true
}
}
List user restrictions for users that have ever been banned in either a universe or a specific place.
The universe ID.
The maximum number of user restrictions to return. The service might return fewer than this value. If unspecified, at most 10 user restrictions are returned. The maximum value is 100 and higher values are set to 100.
A page token, received from a previous call, to retrieve a subsequent page.
When paginating, all other parameters provided to the subsequent call must match the call that provided the page token.
This field may be set in order to filter the resources returned.
The filter field supports a very small subset of CEL:
Example filter: game_join_restriction.active == "true".
A list of UserRestrictions in the parent collection.
The UserRestrictions from the specified Universe or Place.
A token that you can send as a pageToken parameter to retrieve the next page. If this field is omitted, there are no subsequent pages.
curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/user-restrictions?maxPageSize=10&pageToken={string}&filter={string}' \
-H 'x-api-key: {your-api-key}'
{
"userRestrictions": [
{
"path": "universes/123/user-restrictions/123",
"updateTime": "2023-07-05T12:34:56Z",
"user": "users/156",
"gameJoinRestriction": {
"active": true,
"startTime": "2023-07-05T12:34:56Z",
"duration": "3s",
"privateReason": "some private reason",
"displayReason": "some display reason",
"excludeAltAccounts": true,
"inherited": true
}
}
],
"nextPageToken": "string"
}
Get the user restriction.
The universe ID.
The user-restriction ID.
curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/user-restrictions/{user_restriction_id}' \
-H 'x-api-key: {your-api-key}'
{
"path": "universes/123/user-restrictions/123",
"updateTime": "2023-07-05T12:34:56Z",
"user": "users/156",
"gameJoinRestriction": {
"active": true,
"startTime": "2023-07-05T12:34:56Z",
"duration": "3s",
"privateReason": "some private reason",
"displayReason": "some display reason",
"excludeAltAccounts": true,
"inherited": true
}
}
Update the user restriction.
The universe ID.
The user-restriction ID.
The list of fields to update.
The game_join_restriction field must be updated atomically; field masks that index into game_join_restriction (such as "game_join_restriction.active") are not supported. Questa stringa è formattata come Timestamp.
The unique key to use for idempotency.
The timestamp at which the first request was sent.
If this is further in the past than the lifetime of the idempotency key (which may exceed the annotated minimum lifetime), the server must return an error. Questa stringa è formattata come Timestamp.
curl -L -X PATCH 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/user-restrictions/{user_restriction_id}?updateMask={string}&idempotencyKey.key={string}&idempotencyKey.firstSent={string}' \
-H 'x-api-key: {your-api-key}' \
-H 'Content-Type: application/json' \
--data '{
"gameJoinRestriction": {
"active": true,
"duration": "3s",
"privateReason": "some private reason",
"displayReason": "some display reason",
"excludeAltAccounts": true
}
}'
{
"path": "universes/123/user-restrictions/123",
"updateTime": "2023-07-05T12:34:56Z",
"user": "users/156",
"gameJoinRestriction": {
"active": true,
"startTime": "2023-07-05T12:34:56Z",
"duration": "3s",
"privateReason": "some private reason",
"displayReason": "some display reason",
"excludeAltAccounts": true,
"inherited": true
}
}
List changes to UserRestriction resources within a given universe. This includes both universe-level and place-level restrictions.
For universe-level restriction logs, the place field will be empty.
The universe ID.
The maximum number of UserRestrictionLogs to return. The service may return fewer than this value. If unspecified, at most 10 UserRestrictionLogs are returned. The maximum value is 100 and higher values are set to 100.
A page token, received from a previous call, to retrieve a subsequent page.
When paginating, all other parameters provided to the subsequent call must match the call that provided the page token.
This field may be set to filter the logs returned.
The filter field supports a very small number of CEL:
As an example, filtering for a user and a place takes the form filter="user == 'users/123'" && "place == 'places/456'".
Returns a list of change logs applied to UserRestriction resources.
The UserRestrictionLogs from the specified Universe.
A token that you can send as a pageToken parameter to retrieve the next page. If this field is omitted, there are no subsequent pages.
curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/user-restrictions:listLogs?maxPageSize=10&pageToken={string}&filter={string}' \
-H 'x-api-key: {your-api-key}'
{
"logs": [
{
"user": "users/156",
"place": "places/456",
"moderator": {
"robloxUser": "users/156"
},
"createTime": "2023-07-05T12:34:56Z",
"active": true,
"startTime": "2023-07-05T12:34:56Z",
"duration": "3s",
"privateReason": "some private reason",
"displayReason": "some display reason",
"restrictionType": {
"gameJoinRestriction": {}
},
"excludeAltAccounts": true
}
],
"nextPageToken": "string"
}