cURL
curl --request POST \ --url https://api.readmin.app/staff/history \ --header 'Content-Type: application/json' \ --header 'loader-id: <api-key>' \ --data '{ "actioningUser": "<string>", "userId": "<string>", "reason": "<string>", "type": "promotion", "notify": true, "role": "<string>", "expiresInDays": 123, "approval_required": true }'
{ "success": true, "history": { "_id": "<string>", "groupId": "<string>", "type": "promotion", "userId": true, "disciplinarianId": "<string>", "reason": "<string>", "created": "<string>", "expires": "<string>", "rankTo": "<string>", "rankFrom": "<string>", "ended": true, "endedBy": "<string>", "evidence": [ "<string>" ], "pendingApproval": true, "approvedBy": "<string>", "notify": true, "distribution": 123 } }
promotion
writeup
suspension
termination
The request was successful, and the server has returned the requested resource in the response body.
A ReAdmin Staff Histoy Item
Show child attributes