5. Create a dark share

POST {{baseUrl}}/shares

View our Public Documentation to understand more on creating a direct sponsored content share (dark share).

This API example creates a dark image share on the Company Page (organization) referencing referencing the Image file that was uploaded in Step 3.

A Direct Sponsored Content Share allows an advertiser to sponsor content without first publishing the content on the Organization page. It is very similar to a Sponsored Content Share except the share is not organic. This is otherwise known as a dark share and can only be viewed by the administrators of the organization's page.

Request Body

{"agent"=>"urn:li:sponsoredAccount:{{sponsoredaccount_id}}", "content"=>{"contentEntities"=>[{"entity"=>"urn:li:digitalmediaAsset:{{asset_id}}"}], "title"=>"Test Share with Content title", "shareMediaCategory"=>"IMAGE"}, "owner"=>"urn:li:organization:{{organization_id}}", "subject"=>"Test Share Subject", "text"=>{"text"=>"Test Share!"}}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
LinkedIn-Versionstring