Link Search Menu Expand Document

Create

/api/v2/link/create

Post

links

jwt


Purpose

To allow a user to create a link to one of his/her uploaded media files.

Body Content [input]

{
    uid: string,
    link: string
}

Returns if valid [output]

{
    linkID: string,
    error: 0
}

What the API does

  • Generates a unique linkID.
  • Creates and saves a new object in the links collection with the uid and link passed, along with the generated linkID.