Set a company's LinkedIn page
Give a company its LinkedIn page, confirm the page we suggested, or correct a wrong one.
Sets the LinkedIn page of a company of the client's workspace: to give a page to a company we could not identify, to confirm the page we suggested (send the linkedin_url of identification.suggested_company), or to correct a wrong one. The answer is the company, in the same shape as Get a company.
Only this company in the client's workspace changes; no other workspace is affected. Any LinkedIn company page is accepted: we do not check that it matches the company's website.
When the company is monitored, we start finding its people again from the new page by ourselves. Sending the page the company already has changes nothing, and sending the same page twice does not start a second mapping.
Route
Path parameters
| Parameter | Type | Description |
|---|---|---|
| partner_workspace_id | string | Your own ID for the client workspace, as you chose it at creation. URL-encode it in the path. |
| company_id | integer | ID of the company in the workspace, as returned by the other endpoints, for example the id of a company in a list. Use the value the API returned to you; do not guess it or reuse one from another workspace. |
Body parameters
| Parameter | Type | Description |
|---|---|---|
| linkedin_url | string | The LinkedIn company page, with or without https://, for example linkedin.com/company/acme. Showcase, school and personal pages are refused. |
Example request
curl -X PATCH "https://api.getsillage.com/api/v3/partner/workspaces/ws_123/companies/789" \
-H "Authorization: Bearer $SILLAGE_MASTER_KEY" \
-H "Content-Type: application/json" \
-d '{
"linkedin_url": "https://www.linkedin.com/company/acme"
}'Success response
Status: 200 OK
{
"data": {
"identification": { "status": "identified", "suggested_company": null },
"id": 789,
"name": "Acme",
"domain": "acme.com",
"website_url": "https://acme.com",
"linkedin_url": "https://www.linkedin.com/company/acme",
"linkedin_handle": "acme",
"logo_url": null,
"location": null,
"locations": [],
"number_of_employees": null,
"employee_range": null,
"founded_year": null,
"industries": [],
"activity_summary": null,
"tagline": null
}
}Response fields
The fields are those of Get a company, including identification. The company is identified right away; its other fields fill in once we have read the page.
Errors
| Status | Meaning |
|---|---|
| 401 | The master key is missing or invalid. |
| 404 | No workspace found for this partner_workspace_id, or the company does not exist. |
| 409 | Another company in the client's workspace already uses this LinkedIn page (linkedin_page_taken). Nothing was changed. |
| 422 | The company_id is not a valid ID, linkedin_url is missing, or linkedin_url is not a LinkedIn company page (showcase, school and personal pages are refused), or partner_workspace_id is invalid. |
| 429 | Rate limit exceeded. |
| 500 | An unexpected server error occurred. |
Error responses use RFC 9457 problem documents with Content-Type: application/problem+json. type is always about:blank; code tells one problem from another, detail says what went wrong this time, and errors names the field at fault.