2. Register Upload
POST {{baseUrl}}/assets?action=registerUpload
View our Public Documentation to understand more on this API.
This API example covers registering an upload for an Image File.
The returned uploadUrl URL in the response can then subsequently be used to perform the actual upload in step 3.
Request Params
| Key | Datatype | Required | Description |
|---|---|---|---|
action | string |
Request Body
{"registerUploadRequest"=>{"owner"=>"urn:li:organization:{{organization_id}}", "recipes"=>["urn:li:digitalmediaRecipe:feedshare-image"], "serviceRelationships"=>[{"identifier"=>"urn:li:userGeneratedContent", "relationshipType"=>"OWNER"}], "supportedUploadMechanism"=>["SYNCHRONOUS_UPLOAD"]}}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
LinkedIn-Version | string | ||
Authorization | string |