DeletePerson

Function to delete person

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

Authorization

1 Sent in the request headers
Bearer varchar

Auth token

Body data

1 Sent in the request body
person_id integer

Person id - Reference: GetAllPersons

Response

2 HTTP 200

Function to delete person

code integer

Return code

message varchar

Info message

Example request

curl --request DELETE \
  --url 'https://rest.crmango.com/api/DeletePerson' \
  --header 'Authorization: Bearer auth_token' \
  --header 'Content-Type: application/json' \
  --data '{
    "person_id": "integer"
  }'
{
    "code": 200,
    "message": "Person was successfully deleted"
}