cURL
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>", "ban_incremental_id": 123, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "removed_by": "<string>", "removed_at": "<string>", "source": "<string>", "_id": "<string>" }
Create a new ban
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Ban created successfully