CrmCompany

Update Company

PATCH
Update a company

Path parameters

idstringRequired

Headers

x-revert-api-tokenstringRequired
Your official API key for accessing revert apis.
x-revert-t-idstringRequired
The unique customer id used when the customer linked their account.
x-api-versionstringOptional
Optional Revert API version you're using. If missing we default to the latest version of the API.

Request

This endpoint expects an object.
address
objectRequired
Company address.
annualRevenue
integerRequired
Annual revenue of the company. (not supported by pipedrive)
createdTimestamp
anyRequired
Creation timestamp of the object.
description
stringRequired
Description of the company. (not supported by pipedrive)
id
stringRequired

The unique id of this object in Revert

industry
stringRequired
Industry associated with this company. (not supported by pipedrive)
name
stringRequired
Name of the company in a CRM.
phone
stringRequired
Phone number of the company. (not supported by pipedrive)
remoteId
stringRequired

The unique id of this object in the downstream CRM.

size
integerRequired
Number of employees or size of the company.
updatedTimestamp
anyRequired
The last updated timestamp of the object.
additional
anyOptional

Any fields that are not unified yet/non-unifiable come inside this json object.

Response

This endpoint returns an object
status
enum
Allowed values: okerror
message
string
result
any
PATCH
$curl -X PATCH https://api.revert.dev/crm/companies/%3Aid \
> -H "x-revert-api-token: string" \
> -H "x-revert-t-id: string" \
> -H "x-api-version: string" \
> -H "Content-Type: application/json" \
> -d '{
> "address": {
> "city": "string",
> "state": "string",
> "country": "string",
> "zip": "string",
> "postalCode": "string"
> },
> "annualRevenue": 0,
> "createdTimestamp": {},
> "description": "string",
> "id": "string",
> "industry": "string",
> "name": "string",
> "phone": "string",
> "remoteId": "string",
> "size": 0,
> "updatedTimestamp": {}
>}'
Response
1{
2 "status": "ok",
3 "message": "string",
4 "result": {}
5}