Endpoint

Overview

Writes a file into each phone’s shared storage at the path you choose. Missing folders in the path are created. A file already at that path is replaced. The file comes from your media library or from a link. The request returns once the file is fully written on every phone. Requires an active session on each phone. Platforms: Android only. An iPhone gets the error code unsupported; to add photos or videos to an iPhone use Import Media.
To make a photo or video show up in the phone’s gallery, use Import Media instead. It works on both platforms and places the item where apps look for it.

Request Body

Provide exactly one of mediaId or url.
string[]
required
The phones to act on.
string
One phone, instead of phoneIds. The answer’s data is then that phone’s result itself, not a list, and a failure on the phone is the request’s ok: false with the phone’s error (at the HTTP status of its code). Give phoneId or phoneIds, not both.
string
required
Where to write the file, relative to the storage root and including the filename, for example Download/report.pdf. See File paths.
string
The id of a file in your media library.
string
A public HTTPS URL of the file.

Response

boolean
true when the request was carried out. Check each result for how it went on that phone.
Result[]
One Result per phone, in the order of phoneIds.

Errors

Phone Errors