Link Search Menu Expand Document

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 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].
  • Removes the collection corresponding to the value of the collectionID field passed from the collections field of the found profile and saves.