Media
Import media from links
Download files from links into a workspace’s media library.
POST
Needs
media:create, and a role in the workspace that can add media. See Permissions.urls is downloaded and stored now. A link can be:
- a file: a picture, video, PDF, Word or PowerPoint file, up to 500 MB;
- a Dropbox or Google Drive share link to a file (not a folder) that anyone with the link can view. Otherwise Dropbox or Drive answers with a page, and the link is refused;
- an Unsplash photo;
- a public social post: every photo and video in it is stored;
- a download link from Get download links for a post’s media, while it still works.
Content-Type. Documents publish to LinkedIn only: see Documents.
It is all or nothing. When one link can’t be used (it can’t be reached, it is a web page or another type, it is over 500 MB, or the import takes longer than 75 seconds), nothing is stored, and the 422 names that link and why under urls.N. One link can give several files, so read count_stored and each media[].id.
Errors
Related
- Upload a file: a file on disk.
- Get download links for a post’s media: see a post’s files before you import them.
Authorizations
Body
application/json
The links to import: files (pictures, videos, PDF, Word or PowerPoint), Dropbox and Google Drive share links, Unsplash photos, public social posts, and download links from a post.
Minimum array length:
1Maximum string length:
2048