Cloud APIs
UserRestrictionsApi
listRestrictionLogs

listRestrictionLogs

Gets a list of restriction logs from a specific universe.

Parameters

NameTypeDescription
universeIdUniverseIdThe ID of the universe to get restriction logs for.
placeId?PlaceIdThe ID of the place to get restriction logs for.
userId?UserIdThe ID of the uset to get restriction logs to get.
limit?numberThe maximum number of items to return.
cursor?stringProvide to request the next set of data.

Example

const { data: logs } = await UserRestrictionsApi.listRestrictionLogs({
  universeId: 5795192361,
  placeId: 18210254887,
  userId: 6193495014,
}); 

Example Data

[
  {
    user: "users/6193495014",
    place: "18210254887",
    moderator: { robloxUser: "45348281" },
    createTime: 2024-06-25T22:56:58.873Z,
    active: true,
    startTime: 2024-06-25T22:56:58.873Z,
    duration: "31540000s",
    privateReason: "Being a meanie :/",
    displayReason: "Annoying other players.",
    excludeAltAccounts: false,
  },
] 

Endpoint

GET /v2/universes/{universeId}/user-restrictions:listLogs