curl --request GET \
--url https://api.hyra.io/players/bans/{workspaceId} \
--header 'Authorization: Bearer <token>'
[
{
"actor": {
"exists": true,
"id": "<string>",
"username": "<string>",
"display_name": "<string>"
},
"victim": {
"exists": true,
"id": "<string>",
"username": "<string>",
"display_name": "<string>"
},
"removed_by": {
"exists": true,
"id": "<string>",
"username": "<string>",
"display_name": "<string>"
},
"has_comments": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"_id": "<string>",
"reason": "<string>",
"source": "<string>",
"removed_at": "<string>",
"ban_incremental_id": 123
}
]
Retrieve a list of bans
curl --request GET \
--url https://api.hyra.io/players/bans/{workspaceId} \
--header 'Authorization: Bearer <token>'
[
{
"actor": {
"exists": true,
"id": "<string>",
"username": "<string>",
"display_name": "<string>"
},
"victim": {
"exists": true,
"id": "<string>",
"username": "<string>",
"display_name": "<string>"
},
"removed_by": {
"exists": true,
"id": "<string>",
"username": "<string>",
"display_name": "<string>"
},
"has_comments": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"_id": "<string>",
"reason": "<string>",
"source": "<string>",
"removed_at": "<string>",
"ban_incremental_id": 123
}
]
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Default Response
The response is of type object[]
.