Update a CRM company
Changes the company's name or registry fields. Only the fields you send change. An org number another company already has returns `status` `duplicate` and saves nothing, unless you send `force: true`.
Changes the company's name or registry fields. Only the fields you send change. An org number another company already has returns status duplicate and saves nothing, unless you send force: true.
Authorization
x-api-key Company API key, created under Settings > API Keys.
In: header
Path Parameters
The CRM company id.
Header Parameters
Optional with an API key or OAuth token: leave it out and the company the key or token belongs to is used. If sent, it must be that same company, otherwise the request is refused with 403 API_KEY_WRONG_COMPANY or OAUTH_WRONG_COMPANY.
^[0-9a-fA-F]{24}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PATCH "https://example.com/crm/companies/string" \ -H "Content-Type: application/json" \ -d '{}'{ "company": { "accountingCustomerId": "string", "archiveBatchId": "string", "archivedAt": "2019-08-24T14:15:22Z", "companyId": "string", "createdAt": "2019-08-24T14:15:22Z", "dedupOrgNumber": "string", "deletedAt": "2019-08-24T14:15:22Z", "id": "string", "isExample": true, "itxCorporateId": "string", "itxLastSyncedAt": "2019-08-24T14:15:22Z", "lastActivityActorId": "string", "lastActivityAt": "2019-08-24T14:15:22Z", "lastWebhookOccurredAt": "2019-08-24T14:15:22Z", "metadata": { "itx": { "snapshot": { "active": true, "contactEmails": [ "string" ], "corpId": 0, "deliveryAddresses": [ { "apartment": "string", "country": "string", "countryCode": "string", "floor": 0, "line1": "string", "line2": "string", "postBox": "string", "postalCity": "string", "postalCode": "string", "street": "string", "streetNumber": "string" } ], "faxNumbers": [ "string" ], "id": 0, "invoiceAddresses": [ { "apartment": "string", "country": "string", "countryCode": "string", "floor": 0, "line1": "string", "line2": "string", "postBox": "string", "postalCity": "string", "postalCode": "string", "street": "string", "streetNumber": "string" } ], "invoiceEmails": [ "string" ], "landLineNumbers": [ "string" ], "mainAddresses": [ { "apartment": "string", "country": "string", "countryCode": "string", "floor": 0, "line1": "string", "line2": "string", "postBox": "string", "postalCity": "string", "postalCode": "string", "street": "string", "streetNumber": "string" } ], "mobileNumbers": [ "string" ], "officeNumbers": [ "string" ], "postalAddresses": [ { "apartment": "string", "country": "string", "countryCode": "string", "floor": 0, "line1": "string", "line2": "string", "postBox": "string", "postalCity": "string", "postalCode": "string", "street": "string", "streetNumber": "string" } ], "switchboardNumbers": [ "string" ], "visitAddresses": [ { "apartment": "string", "country": "string", "countryCode": "string", "floor": 0, "line1": "string", "line2": "string", "postBox": "string", "postalCity": "string", "postalCode": "string", "street": "string", "streetNumber": "string" } ], "property1": null, "property2": null }, "snapshotAt": "string" } }, "naceCode": "string", "naceDescription": "string", "name": "string", "number": 0, "orgForm": "string", "orgNumber": "string", "orgNumberVerified": true, "registeredAddress": "string", "registryRefreshedAt": "2019-08-24T14:15:22Z", "registryStatus": "string", "updatedAt": "2019-08-24T14:15:22Z" }, "duplicate": { "matches": [ { "accountingCustomerId": "string", "archiveBatchId": "string", "archivedAt": "2019-08-24T14:15:22Z", "companyId": "string", "createdAt": "2019-08-24T14:15:22Z", "dedupOrgNumber": "string", "deletedAt": "2019-08-24T14:15:22Z", "id": "string", "isExample": true, "itxCorporateId": "string", "itxLastSyncedAt": "2019-08-24T14:15:22Z", "lastActivityActorId": "string", "lastActivityAt": "2019-08-24T14:15:22Z", "lastWebhookOccurredAt": "2019-08-24T14:15:22Z", "metadata": { "itx": { "snapshot": { "active": true, "contactEmails": [ "string" ], "corpId": 0, "deliveryAddresses": [ { "apartment": "string", "country": "string", "countryCode": "string", "floor": 0, "line1": "string", "line2": "string", "postBox": "string", "postalCity": "string", "postalCode": "string", "street": "string", "streetNumber": "string" } ], "faxNumbers": [ "string" ], "id": 0, "invoiceAddresses": [ { "apartment": "string", "country": "string", "countryCode": "string", "floor": 0, "line1": "string", "line2": "string", "postBox": "string", "postalCity": "string", "postalCode": "string", "street": "string", "streetNumber": "string" } ], "invoiceEmails": [ "string" ], "landLineNumbers": [ "string" ], "mainAddresses": [ { "apartment": "string", "country": "string", "countryCode": "string", "floor": 0, "line1": "string", "line2": "string", "postBox": "string", "postalCity": "string", "postalCode": "string", "street": "string", "streetNumber": "string" } ], "mobileNumbers": [ "string" ], "officeNumbers": [ "string" ], "postalAddresses": [ { "apartment": "string", "country": "string", "countryCode": "string", "floor": 0, "line1": "string", "line2": "string", "postBox": "string", "postalCity": "string", "postalCode": "string", "street": "string", "streetNumber": "string" } ], "switchboardNumbers": [ "string" ], "visitAddresses": [ { "apartment": "string", "country": "string", "countryCode": "string", "floor": 0, "line1": "string", "line2": "string", "postBox": "string", "postalCity": "string", "postalCode": "string", "street": "string", "streetNumber": "string" } ], "property1": null, "property2": null }, "snapshotAt": "string" } }, "naceCode": "string", "naceDescription": "string", "name": "string", "number": 0, "orgForm": "string", "orgNumber": "string", "orgNumberVerified": true, "registeredAddress": "string", "registryRefreshedAt": "2019-08-24T14:15:22Z", "registryStatus": "string", "updatedAt": "2019-08-24T14:15:22Z" } ], "reason": "orgNumber" }, "status": "duplicate"}Restore a CRM company POST
Brings back an archived company, together with the contacts and deals archived or detached with it. Restoring a company that is not archived changes nothing.
Get a form GET
Returns one form with its full definition: steps, fields, branching rules, visibility conditions and branding. Returns 404 when the form does not exist in the company or is deleted.