cURL
curl --request POST \ --url https://api.readmin.app/games/bans \ --header 'Content-Type: application/json' \ --header 'loader-id: <api-key>' \ --data '{ "userId": "<string>", "reason": "<string>", "bannedByUserId": "<string>", "expiresInDays": 123 }'
{ "success": true, "ban": { "_id": "<string>", "groupId": "<string>", "userId": "<string>", "reason": "<string>", "disciplinarianId": "<string>", "active": "<string>", "created": true, "expires": "<string>" } }
The request was successful, and a new resource was created.
Workspace bans
Show child attributes