Delete
/api/v2/verified/remove
Post
verifieds
Purpose
To allow the admin to remove previously verified users.
Body Content [input]
{
secret: string,
membersID: string[]
}
Returns if valid [output]
{
message: string,
error: 0
}
What the API does
- Checks if the value of the
secret
field passed is valid [401]. - Checks that
membersID
is not empty [400] and loops through each of its values to ensure that there is a correponding record in theverifieds
collection with these values for theiruid
field [404]. - Removes all records in the
verifieds
collection with auid
field corresponding to the value of the items in themembersID
field passed.