Link Search Menu Expand Document

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 the verifieds collection with these values for their uid field [404].
  • Removes all records in the verifieds collection with a uid field corresponding to the value of the items in the membersID field passed.