Skip to main content
Looking for the JavaScript API?
A Company that does not yet exist by uid will first be created and then updated with the other data included in this request.
Company data updates are processed synchronously on the application server.

Create/Update a Company

  • When you are creating the Company, simply send the uid and any other properties pertinent to that company.
  • When you are updating the Company, simply send the Chameleon id field or use the uid and any other properties pertinent to that company.

HTTP Request

POST
or
POST

HTTP Response

Limits

  • Up to a total of 768 bytes are stored for each scalar value where each Array item and each Hash value can reach this limit.
  • See the full page on Normalization for more information on these limits.

Normalization

  • Property names are normalized to lower case and underscored i.e. companyName => company_name.
  • See the full page on Normalization for more information on how properties are normalized.

Bulk Create/Update Companies

  • When sending a bulk create/update, send an array of Company objects as the companies parameter
  • For each Company, send the Company ID as uid and any other properties pertinent to that Company.

HTTP Request

POST
or
POST

HTTP Response

HTTP Response error

When the 930th item had no value for the uid key Note: The status code will be the normal 202 for (Accepted for processing)

Limits

  • The size of each batch request is limited to 16mb
  • As with the Single Company update, up to a total of 768 bytes are stored for each scalar value where each Array item and each Hash value can reach this limit.
  • See the full page on Normalization for more information on these limits.

Examples

Either set the number of items per batch to 10,000 OR to approximate the number of items per batch (based on the average payload size), divide (16777216 / “Average characters in JSON payload per item”) * 0.95
With the following update, you can send approximately 257,000 Companies per batch request
With the following update, you can send approximately 47,000 Companies per batch request

HTTP Response error

When the request was larger than 16mb. The status code will be 413 (Request too large)