Link Search Menu Expand Document

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 the profiles collection corresponding to the value of the uid field passed [404].
  • Finds the collection corresponding to the value of the passed collectionID field passed from the collections field of the found profile [404].
  • Updates and saves the found collection from the collections field of the found profile with the value of the name field set to the one passed.