ユーザ制限のリソースパス。
形式:
- universes/{universe_id}/user-restrictions/{user_restriction_id}
- universes/{universe_id}/places/{place_id}/user-restrictions/{user_restriction_id}.
*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。
ユーザに対する制限を表現します。
ユーザ制限のリソースパス。
形式:
ユーザー制限が最後に更新されたタイムスタンプ。. この文字列は Timestamp としてフォーマットされています。
影響を受けるユーザ。.
ユーザーは親宇宙または場プレースから禁止されています。.
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
}
}
宇宙または特定の場プレースで禁止されたユーザーのユーザー制限リストを作成します。
ユニバースID。.
返すユーザー制限の最大数。サービスはこの値より少なく返す可能性があります。指定されない場合、最大 10のユーザー制限が返されます。最大値は 100 で、より高い値は 100 に設定されます。.
前の呼び出しから受信したページトークンで、後のページを取得します。
ページをページングするとき、次の呼び出しに提供された他のすべてのパラメータは、ページトークンを提供した呼び出しと一致する必要があります。.
親コレクションのユーザー制限リスト。
指定された宇宙または場所のユーザー制限。.
次のページを取得するための pageToken パラメータとして送信できるトークン。このフィールドが省略されると、後続のページはありません。.
curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/user-restrictions?maxPageSize=10&pageToken={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"
}
ユーザー制限を取得する。
ユニバースID。.
ユーザー制限 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
}
}
ユーザー制限を更新する。
ユニバースID。.
ユーザー制限 ID。.
更アップデートするフィールドのリスト。
game_join_restriction フィールドはアトミックに更新する必要があり、game_join_restriction (例: "game_join_restriction.active") にインデックス付けされるフィールドマスクはサポートされません。. この文字列は Timestamp としてフォーマットされています。
非同期性を使用する唯一のキー。.
最初のリクエストが送信されたタイムスタンプ。
これが idempotency キーの寿命よりも古い場合 (which は 注釈された最小寿命を超える可能性があります)、サーバーは エラーを返す必要があります。. この文字列は 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
}
}
特定の宇宙内のユーザー制限リソースの変更をリストします。これには、ユニバースレベルと場所レベルの制限が含まれます。
ユニバースレベルの制限ログについては、place フィールドが空になります。
ユニバースID。.
返すユーザー制限ログの最大数。サービスはこの値より少なく返す可能性があります。指定されない場合、最大 10 個のユーザー制限ログが返されます。最大値は 100 で、より高い値は 100 に設定されます。.
前の呼び出しから受信したページトークンで、後のページを取得します。
ページをページングするとき、次の呼び出しに提供された他のすべてのパラメータは、ページトークンを提供した呼び出しと一致する必要があります。.
このフィールドは、返されたログをフィルタするように設定できます。
filter フィールドは、非常に少数の CEL をサポートします:
例えば、ユーザーと場所のフィルタリングは、形式 filter="user == 'users/123'" && "place == 'places/456'" を取ります.
ユーザー制限資源に適用された変更ログのリストを返します。
指定された宇宙からのユーザー制限ログ。.
次のページを取得するための pageToken パラメータとして送信できるトークン。このフィールドが省略されると、後続のページはありません。.
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"
}