2. Create a share with Company Mention
POST {{baseUrl}}/shares
Mention a company name by using the annotations. Learn more by viewing our public documentation.
This example uses the LinkedIn organization.
Request Body
{"owner"=>"urn:li:organization:{{organization_id}}", "text"=>{"annotations"=>[{"entity"=>"urn:li:organization:1337", "length"=>8, "start"=>6}], "text"=>"Hello LinkedIn world!"}, "subject"=>"Test Share Subject", "content"=>{"contentEntities"=>[{"entityLocation"=>"https://www.example.com", "thumbnails"=>[{"resolvedUrl"=>"https://www.example.com/image.jpg"}]}], "title"=>"Test Share with Content title"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
LinkedIn-Version | string | ||
X-Restli-Protocol-Version | string |