Approve/Reject Admin assigned to User

This api approve/reject admin assigned to User


REST


Headers

FieldsTypeDescriptionExampleO/MData Management
URLstring/v1/pending_users/<user_id>M
METHODstringPUTM
content-typestringJSONapplication/jsonM
x-access-tokenstringSession token with validitytokenM

Request

Approve

{
    "approval_status":"approved"
}

disapprove

{
    "approval_status":"disapproved"
}

Response

 {
  "n": 1,
  "nModified": 1,
  "opTime": {
    "ts": "6928287237817761793",
    "t": 6
  },
  "electionId": "7fffffff0000000000000006",
  "ok": 1,
  "operationTime": "6928287237817761793",
  "$clusterTime": {
    "clusterTime": "6928287237817761793",
    "signature": {
      "hash": "ZfgXPCU5RpuKWrIa0AwN+EhmN70=",
      "keyId": "6894751050838835201"
    }
  }
}

Error

{ 
    "error": 'The user has not verified his/her email' 
}