Media
Upload a file
Upload one picture, video or document to a workspace’s media library.
POST
Needs
media:create, and a role in the workspace that can add media. See Permissions.multipart/form-data, with workspace_id and, if you like, a folder_id of the same workspace. The type is read from the file itself, so there is no type field:
- Pictures: JPEG, PNG, GIF, WebP.
- Videos: MP4, MOV, WebM. MKV, AVI and other video types are refused.
- Documents: PDF, DOC, DOCX, PPT, PPTX. They publish to LinkedIn only: see Documents.
media.id in a post’s content[].media. For a file already on the web, use Import media from links.
Errors
Related
- Media library: types, picture copies and documents.
- Create a post: use
media.id.
Authorizations
Body
multipart/form-data