POST
/
players
/
bans
/
{workspaceId}
curl --request POST \
  --url https://api.hyra.io/players/bans/{workspaceId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "actor": "<string>",
  "player": "<string>",
  "reason": "<string>",
  "source": "<string>"
}'
{
  "_id": "<string>",
  "actor": "<string>",
  "ban_incremental_id": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "reason": "<string>",
  "removed_at": "<string>",
  "removed_by": "<string>",
  "source": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z",
  "victim": "<string>",
  "workspace": "<string>"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

Body

application/json
actor
string
player
string
required
reason
string
required
source
string
required

Response

200 - application/json
_id
string
actor
string
required
ban_incremental_id
number
required
createdAt
string
required
reason
string
required
removed_at
string
removed_by
string
source
string
updatedAt
string
required
victim
string
required
workspace
string
required