Skip to main content

Deactivate

Deactivate account

Deactivate

Intro

You will need to be logged in to Get change link. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel dolor lacinia, pellentesque ligula vitae, ultrices dui. In tincidunt velit sit amet neque aliquet, a vulputate purus lobortis.

Request Headers

Origin: <CLIENT_APP_URL>
client_id: <API_CLIENT_ID>
Authorization: <BEARER_TOKEN>

Request Body

{
"reason":"String"
}

Body Validation

  1. reason - deactivation reason, min 8 char

Request

PATCH
http://localhost:5501/api/v1/auth/deactivate/ac

Response

{
"status": "String",
"data": "String"
}

Response Validation

  1. status - response status
  1. data - User ID

Example

Headers

Origin: http://localhost:3000
client_id: pSpisBrYn4yIP1vGILcdZ
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Body

{
"reason":"i am tired"
}

Response

{
"status": "success",
"data": "62d4e9bf167f537cf7db8c44"
}