Link Search Menu Expand Document

Fetch One

/api/v2/collection/fetch/one

Post

profiles

jwt


Purpose

To allow a user to fetch one of his/her collections.

Body Content [input]

{
    uid: string,
    collectionID: string
}

Returns if valid [output]

{
    collection: {
        collectionID: string,
        name: string,
        posts: 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 a collection from the collections field of the profile corresponding to the value of the collectionID field passed [404].
  • Returns the found collection.