Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 478 Bytes

deleteUser.md

File metadata and controls

33 lines (21 loc) · 478 Bytes

Delete user by id

Deletes a user with the corresponding ID.

URL : /users/:id

Method : DELETE

Header :

"Content-type": "application/json"
"Authorization": "Bearer [valid Moderator token]"

Success Reponse

Code : 204 No Content

Error Response

Condition : Wrong token.

Code : 401 Unauthorized

Body :

{
    "code": "InvalidCredentials",
    "message": "caused by JsonWebTokenError: invalid signature"
}