Approve/Reject Admin assigned to User
This api approve/reject admin assigned to User
REST
Headers
Fields | Type | Description | Example | O/M | Data Management |
---|---|---|---|---|---|
URL | string | /v1/pending_users/<user_id> | M | ||
METHOD | string | PUT | M | ||
content-type | string | JSON | application/json | M | |
x-access-token | string | Session token with validity | token | M |
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'
}