Delete
/api/v2/badge/delete
Post
badges
Purpose
To allow the admin to delete an existing badge.
Body Content [input]
{
secret: string,
badgeID: string
}
Returns if valid [output]
{
message: string,
error: 0
}
What the API does
- Checks if the value of the
secretfield passed is valid [401]. - Ensures that there is a
badgein thebadgescollection corresponding to the value of thebadgeIDfield passed [404]. - Removes the
badgecorresponding to the value of thebadgeIDfield passed from thebadgescollection.