BoldSales

API Documentation

Update a company

patch/api/v1/companies/{id}

Updates one or more field values for an existing company. Supports updating business information, contact details, financial data, and custom fields.

Code snippet

curl -X 'PATCH' \
  'https://{yourdomain}/api/v1/companies/{id}' \
  -H 'accept: text/plain; x-api-version=1.0' \
  -H 'x-api-key: {your API key}' \
  -H 'Content-Type: application/json-patch+json; x-api-version=1.0' \
  -d '{
    "data": {
      "website": "https://www.techcorp-solutions.com",
      "phoneNumbers": [
        {
          "value": "+1-415-555-0123",
          "label": "Business",
          "isPrimary": true
        }
      ],
      "numberOfEmployees": 1250,
      "annualRevenue": 75000000,
      "cf_customer_tier": {
        "id": 1
      }
    }
  }'

Path parameters

idlongRequiredThe unique identifier of the company to update.

Query parameters

skipValidationbooleanA flag indicating whether to bypass specific validations during company update. If set to true, the system skips checks for required fields, conditional logic, and field dependencies. When false (or unspecified), all standard validations are applied.

Request body

namestringCompany name for business identification.
websitestringOfficial website URL of the company.

phoneNumbersarray

List of phone numbers associated with the company.

valuestringRequiredThe phone number value including country code.
labelstringType or category of the phone number (e.g., Business, Others).
isPrimarybooleanIndicates if this is the primary phone number for the company.

ownerobject

Owner assignment for the company record.

idintegerRequiredUnique identifier of the user who owns this company.
numberOfEmployeesintegerTotal number of employees in the company.
annualRevenuedecimalRepresents the company's estimated annual revenue as a currency value.

industryobject

Industry classification of the company.

idintegerRequiredUnique identifier of the industry option.
streetstringStreet address of the company headquarters.
citystringCity name in the company's address.
statestringState or province name in the company's address.
countrystringCountry name in the company's address.
postalCodestringPostal or ZIP code for the company's address.
linkedInstringLinkedIn company page URL.
facebookstringFacebook company page URL.
twitterstringTwitter company profile URL.
descriptionstringDetailed description of the company and its business activities.

companyTypeobject

Type or category classification of the company.

idintegerRequiredUnique identifier of the company type option.

sectorobject

Business sector classification of the company.

idintegerRequiredUnique identifier of the sector option.
yearFoundedintegerThe year when the company was founded.

cf_customer_tierobject

Custom field defined for the company module. Pass a custom field using its API name, which always begins with the cf_ prefix. The value must match the data type configured for the custom field.

idintegerThe unique identifier of the customer tier.

Example response

200 Success

{
  "message": "Company updated successfully.",
  "data": {
    "id": 1234
  }
}