Patch Entity
Partially update an existing entity (PATCH).
Send only the fields to change. Every field is optional; a field that is
omitted is not written and keeps its stored value. Values that are sent
are validated the same way PUT validates them, so a field sent as
null is cleared only where PUT also accepts null for it.
Args: entity_id: Unique identifier of the entity to update entity_info: The fields to change, plus custom field updates if applicable user: Authenticated user information (used for audit trails) response: HTTP response object for status code modification
Returns: Complete updated entity data, as PUT returns it
Note: - Returns HTTP 200 on successful update - Returns HTTP 206 (Partial Content) if entity is updated but some custom fields failed to update - Automatically updates modification timestamp and user information
Raises: HTTPException: - 400: Invalid input data - 401: Authentication required - 403: Insufficient permissions to update this entity - 404: Entity not found - 405: This service replaced the generic PUT with its own update handler, so the generic PATCH would bypass that handler's rules - 409: Update conflict - 422: Validation error in a sent field - 500: Internal server error during update
Path Parameters
- Type: stringentity
_id required
Query Parameters
- Type: booleaninclude
_additionals Whether to include additional fields from the additional fields tab.
Body·
- Type: stringaddressmax length:256nullable
Address - Street address of the company's headquarters or primary location
- Type: stringnullableae
Owner AE Owner - Account Executive responsible for this company. Must be a valid user ID starting with 'u-'
- Type: numbernullableannual
Contract Value Annual Contract Value (ACV) - Total value of annual contracts with this company in USD
- Type: numbernullablearr
Annual Recurring Revenue (ARR) - Total annual recurring revenue from this company in USD
- Type: stringcitymax length:256nullable
City - City where the company is headquartered or has primary operations
- Type: stringcountrymax length:256nullable
Country - Country where the company is headquartered or has primary operations
- Type: stringnullablecsm
Owner CSM Owner - Customer Success Manager assigned to this company. Must be a valid user ID starting with 'u-'
- Type: stringdomainsmax length:256nullable
Domains - Semicolon-separated list of known company domains
- Type: stringFormat: date-timenullablefiscal
Year Starts At Fiscal Year Start Date - When the company's fiscal year begins. Used for financial reporting and quota calculations
- Type: integernullableindustry
Id Industry ID - Primary industry classification for this company
- Type: stringlinkedin
Url max length:256nullableLinkedIn - URL of the company's LinkedIn page
- Type: numbernullablemrr
Monthly Recurring Revenue (MRR) - Total monthly recurring revenue from this company in USD
- additionalPropertyType: anythingproperty
Name
Responses
- application/json
- application/json
- application/json
curl 'https://crm.dreamhub.ai/api/v1/companies/{entity_id}?include_additionals=false' \
--request PATCH \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"name": "Acme Corporation",
"status": 1,
"sdrOwner": "u-sdr123",
"aeOwner": "u-ae789",
"csmOwner": "u-csm345",
"industryId": 1,
"subIndustryId": "si-tech",
"city": "San Francisco",
"stateRegion": "California",
"country": "United States",
"postalCode": "94105",
"numOfEmployees": 50,
"parentCompany": "c-parent123",
"address": "123 Main Street",
"fiscalYearStartsAt": "2024-01-01T00:00:00Z",
"website": "https://www.acme.com",
"linkedinUrl": "https://www.linkedin.com/company/acme",
"domains": "",
"phone": "+1-555-123-4567",
"segment": 1,
"arr": 120000,
"mrr": 10000,
"annualContractValue": 150000,
"totalContractValue": 450000,
"additionalProperty": "anything"
}'
{
"name": "Acme Corporation",
"status": 1,
"sdrOwner": "u-sdr123",
"aeOwner": "u-ae789",
"csmOwner": "u-csm345",
"industryId": 1,
"subIndustryId": "si-tech",
"city": "San Francisco",
"stateRegion": "California",
"country": "United States",
"postalCode": "94105",
"numOfEmployees": 50,
"parentCompany": "c-parent123",
"address": "123 Main Street",
"fiscalYearStartsAt": "2024-01-01T00:00:00Z",
"website": "https://www.acme.com",
"linkedinUrl": "https://www.linkedin.com/company/acme",
"domains": "string",
"phone": "+1-555-123-4567",
"segment": 1,
"arr": 120000,
"mrr": 10000,
"annualContractValue": 150000,
"totalContractValue": 450000,
"lastModifiedBy": "string",
"statusChangedAt": "2026-11-12T20:58:36.742Z",
"icpFit": 1,
"icpMetadata": {
"bullets": [
{
"status": "string",
"primary": "string",
"secondary": "string"
}
]
},
"id": "c-log-f47ac10b",
"createdAt": "2026-11-12T20:58:36.743Z",
"lastActivity": "2026-11-12T20:58:36.743Z",
"domainList": [
"string"
],
"industryName": "string",
"subIndustryName": "string",
"parentCompanyName": "string",
"closestContractEndDate": "2026-11-12T20:58:36.743Z",
"additionalProperty": "anything"
}
