UploadDocument
Uploads document assets, such as PDFs or whitepapers, to your LinkedIn organization so they can be attached to posts or used in sponsored content campaigns.
Procedure Specific Information
To use this stored procedure, exactly one of the following parameters must be specified (in addition to OwnerURN):- LocalFile
- FileStream
- FileData
If no parameter is used, or more than one parameter is used, the procedure will fail.
Below are some other restrictions for document assets:
- The document's size can't exceed 100MB and 300 pages.
- The following formats are supported: PPT, PPTX, DOC, DOCX, and PDF.
Input
| Name | Type | Required | Accepts Input Streams | Description |
| OwnerURN | String | True | False | Uniform Resource Name (URN) that identifies the account or organization that will own the uploaded document asset. |
| LocalFile | String | False | False | Specifies the absolute local file path of the document to upload to LinkedIn. |
| FileStream | String | False | True | Specifies an InputStream object used to read the document data during upload. Useful when direct access to the local file system (via LocalFile) is not available. |
| FileData | String | False | False | Contains the document data as a Base64-encoded string, used when neither LocalFile nor FileStream parameters can be provided. |
Result Set Columns
| Name | Type | Description |
| DocumentURN | String | URN that uniquely identifies the newly created document asset after a successful upload. |