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 '{
  "player": "<string>",
  "reason": "<string>",
  "source": "<string>",
  "actor": "<string>"
}'
{
  "actor": "<string>",
  "victim": "<string>",
  "workspace": "<string>",
  "reason": "<string>",
  "removed_by": "<string>",
  "removed_at": "<string>",
  "ban_incremental_id": 123,
  "source": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "_id": "<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
player
string
required
reason
string
required
source
string
required
actor
string

Response

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