Fire Employee
Fire an employee using their id (employee_id, not client_id). You can only fire an employee if you're ADMIN.
Body Required
-
employee_id number
Id of the employee in database (you can get it via GET /employee)
DELETE
/employee
curl \
-X DELETE http://63.141.232.244:25540/v0/employee \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"employee_id":42.0}'
Request examples
{
"employee_id": 42.0
}
Response examples (200)
{
"success": true
}
Response examples (400)
{
"success": false,
"error": [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"client_id"
],
"message": "Required"
}
]
}
Response examples (401)
{
"success": false,
"error": "Unauthorized"
}
Response examples (429)
{
"success": false,
"error": "Too many requests, please try again later"
}