5. Create a share
POST {{baseUrl}}/shares
View our Public Documentation to understand more on creating shares.
This API example creates an organic image share on the Company Page (organization) referencing the Image file that was uploaded in Step 3.
Request Body
{"owner"=>"urn:li:organization:6446331", "text"=>{"text"=>"Test Share text"}, "subject"=>"Test Share Subject", "content"=>{"contentEntities"=>[{"entity"=>"urn:li:digitalmediaAsset:{{asset_id}}"}], "title"=>"Test Share with Content title", "shareMediaCategory"=>"IMAGE"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-Restli-Protocol-Version | string | ||
LinkedIn-Version | string | ||
Authorization | string |