DeleteUser

Function to delete user

DELETE https://rest.crmango.com/api/DeleteUser

Authorization

1 Sent in the request headers
Bearer varchar

Auth token

Body data

1 Sent in the request body
user_id integer

User id
Reference: GetAllUsers

Response

2 HTTP 200

Function to delete user

code integer

Return code

message varchar

Info message

Example request

curl --request DELETE \
  --url 'https://rest.crmango.com/api/DeleteUser' \
  --header 'Authorization: Bearer auth_token' \
  --header 'Content-Type: application/json' \
  --data '{
    {
        "user_id" : 59
    }
  }'
{
    "code": 200,
    "message": "User has been deleted"
}