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
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]. - Updates and saves the found
collection
from thecollections
field of the foundprofile
with the value of thename
field set to the one passed.