Update
/api/v2/collection/update
Post
profiles
jwt
Purpose
To allow a user to update an existing collection.
Body Content [input]
{
uid: string,
collectionID: string,
name: 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]. - Updates and saves the found
collectionfrom thecollectionsfield of the foundprofilewith the value of thenamefield set to the one passed.