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

KeyDatatypeRequiredDescription
actionstring

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

KeyDatatypeRequiredDescription
LinkedIn-Versionstring
Authorizationstring