Delete
/api/v2/collection/delete
Post
profiles
jwt
Purpose
To allow a user to delete an existing collection.
Body Content [input]
{
uid: string,
collectionID: string
}
Returns if valid [output]
{
message: string,
error: 0
}
What the API does
- Finds a
profilefrom theprofilescollection corresponding to the value of theuidfield passed [404]. - Finds the
collectioncorresponding to the value of the passedcollectionIDfield passed from thecollectionsfield of the foundprofile[404]. - Removes the
collectioncorresponding to the value of thecollectionIDfield passed from thecollectionsfield of the foundprofileand saves.