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
profile
from theprofiles
collection corresponding to the value of theuid
field passed [404]. - Finds the
collection
corresponding to the value of the passedcollectionID
field passed from thecollections
field of the foundprofile
[404]. - Removes the
collection
corresponding to the value of thecollectionID
field passed from thecollections
field of the foundprofile
and saves.