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
header
required

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

Path Parameters

workspaceId
string
required

Body

application/json

Response

200 - application/json

Ban created successfully