Crm companies

Restore a CRM company

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.

POST
/crm/companies/{id}/restore

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.

Authorization

x-api-key
x-api-key<token>

Company API key, created under Settings > API Keys.

In: header

Path Parameters

id*string

The CRM company id.

Header Parameters

x-company-id?string

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.

Match^[0-9a-fA-F]{24}$

Response Body

application/json

curl -X POST "https://example.com/crm/companies/string/restore"
{  "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"}