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
secretfield passed is valid [401]. - Checks that
membersIDis not empty [400] and loops through each of its values to ensure that there is a correponding record in theverifiedscollection with these values for theiruidfield [404]. - Removes all records in the
verifiedscollection with auidfield corresponding to the value of the items in themembersIDfield passed.