uploadFile

Uploads up to 16 files or 50 MB at a time to use in the File picker and File tab of the Leanlum dashboard. This method requires your development API clientKey.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
Defaults to YOUR_APP_ID

The application ID. To find yours, select your app in the navigation column, and click Manage Apps. Then click Keys & Settings.

string
required
Defaults to YOUR_DEV_KEY

The Development key for your Leanplum App.

string
enum
required
Defaults to 1.0.6

The version of the Leanplum API to use. The current version is 1.0.6.

Allowed:
data
array of objects
required

A JSON array-encoded string representing each file's metadata. Used when uploading multiple files at once.

data*
file
required

Supply if data is also supplied. The file data to be uploaded for file "k", where "k" is based on the order of the metadata in data[] (0-based). The first metadata item in data[] will be matched with file0, the second with file1, etc. There should be one file uploaded per entry in data.

string

Supply if and only if data is not supplied. The filename of the file being uploaded relative to the application.

file

Supply if and only if data is not supplied. The file data to be uploaded.

number

Supply if and only if data is not supplied. The size of the file in bytes.

string

Supply if and only if data is not supplied. The MD5 hash representing the file. Used to detect changes to files in the SDK in Development Mode.

Response

Language
Credentials
URL
LoadingLoading…
Response
Choose an example:
application/json