Media API

Upload a media item

POST /media
  • Request:

    Name

    Position

    Type

    Required

    file

    formdata

    file

    required

    fileName

    query

    string

    optional

  • Response:Media

Fetch a media item

GET /media/{locator}
  • Request:

    Name

    Position

    Type

    Required

    locator

    path

    string

    required

  • Response:Media

Media

{
  // Required
  "expiresTimestamp" : integer
  "locator" : string
  "mimeType" : string
  "url" : string

  // Optional
  "fileName" : string
}