Update Entity

​

Update an existing entity with new data.

This endpoint supports both full and partial updates:

  • Partial Update: Provide only the fields you want to change. All other fields remain unchanged.
  • Full Update: Provide all fields to completely replace the entity data.

Args: entity_id: Unique identifier of the entity to update entity_info: Updated entity data including: - Fields to modify (partial update supported - only changed fields required) - All unchanged fields will retain their current values - 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 including: - All entity fields with updated values - Updated timestamp information - Computed fields and relationships

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 or validation errors - 401: Authentication required - 403: Insufficient permissions to update this entity - 404: Entity not found - 409: Update conflict (entity modified by another user) - 422: Validation error in request data - 500: Internal server error during update

Path Parameters

Query Parameters

  • Whether to include additional fields from the additional fields tab.

Body·

required
application/json
  • Company Name - Official name of the company or organization

  • Company Status - Current status of the company account (e.g., ACTIVE, INACTIVE, PROSPECT)

    values
    12345
  • Address - Street address of the company's headquarters or primary location

  • AE Owner - Account Executive responsible for this company. Must be a valid user ID starting with 'u-'

  • Annual Contract Value (ACV) - Total value of annual contracts with this company in USD

  • Annual Recurring Revenue (ARR) - Total annual recurring revenue from this company in USD

  • City - City where the company is headquartered or has primary operations

  • Country - Country where the company is headquartered or has primary operations

  • CSM Owner - Customer Success Manager assigned to this company. Must be a valid user ID starting with 'u-'

  • Domains - Semicolon-separated list of known company domains

  • Fiscal Year Start Date - When the company's fiscal year begins. Used for financial reporting and quota calculations

  • Industry ID - Primary industry classification for this company

Responses

  • application/json
  • application/json
Request Example for put/{entity_id}
curl 'https://crm.dreamhub.ai/api/v1/companies/{entity_id}?include_additionals=false' \
  --request PUT \
  --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",
  "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",
  "domains": "string",
  "phone": "+1-555-123-4567",
  "segment": 1,
  "arr": 120000,
  "mrr": 10000,
  "annualContractValue": 150000,
  "totalContractValue": 450000,
  "lastModifiedBy": "string",
  "statusChangedAt": "2026-09-29T00:01:38.146Z",
  "icpFit": 1,
  "icpMetadata": {
    "bullets": [
      {
        "status": "string",
        "primary": "string",
        "secondary": "string"
      }
    ]
  },
  "id": "c-log-f47ac10b",
  "createdAt": "2026-09-29T00:01:38.146Z",
  "lastActivity": "2026-09-29T00:01:38.146Z",
  "domainList": [
    "string"
  ],
  "industryName": "string",
  "subIndustryName": "string",
  "parentCompanyName": "string",
  "closestContractEndDate": "2026-09-29T00:01:38.146Z",
  "additionalProperty": "anything"
}