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 codeunsupported; 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 ofmediaId or url.
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.Where to write the file, relative to the storage root and including the filename, for example
Download/report.pdf. See File paths.The
id of a file in your media library.Response
One Result per phone, in the order of
phoneIds.