Bulk Update Entities
Bulk update multiple entities in a single request.
Behavior:
- Each entity is updated independently based on its
id. - Some updates can succeed while others fail (partial success).
- Custom fields and linked fields are updated using the same logic as single-entity updates.
Args:
entities_info:
List of entity payloads to update. Each item:
- Must include id (see the entity schema for the expected ID format).
- May include only the fields to change, as PATCH /{entity_id}
takes them: every field is optional, a field that is sent is
validated as PUT validates it, and a field that is omitted is not
written and keeps its stored value.
override:
- True → REPLACE: every field the item sends is written,
including nulls (clears the stored value). Use when the payload
is the authoritative source of truth and you want explicit null
inputs to erase existing data. Omitted fields are left alone.
- False → SYNC: null input fields are skipped; non-null
inputs overwrite existing values regardless of whether they are
already set. Safe default for partial updates.
At most 500 items per request; a larger one is refused with 413 before
anything is written. An item without an id is not written and is counted
as failed, with its position in the request as the errors key; a request
in which no item has an id is refused with 422. An item naming a record
of a company hidden from the caller is not written and fails exactly as an
id with no record does.
Returns:
JSON object with:
- successfulCount (int): number of entities updated successfully
- failedCount (int): number of items that failed, including items with no id
- successfulIds (List[str]): IDs of updated entities
- failedIds (List[str]): IDs of entities that failed (when available)
- errors (Dict[str,str]): mapping of ID, or position for an item with no
id, → error description
Query Parameters
- Type: booleanoverride
When true, all provided fields override existing values. When false, only non-null fields are applied.
Body·Entities Info
- Type: array of contractsPartialUpdateProperties: 42
Responses
- application/json
- application/json
curl 'https://crm.dreamhub.ai/api/v1/contracts/bulk/update?override=true' \
--request PUT \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '[
{
"name": "",
"dealId": "",
"companyId": "",
"productId": "",
"status": 1,
"arr": 1,
"arrLocal": 1,
"mrr": 1,
"mrrLocal": 1,
"currency": "",
"revenueItems": [
""
],
"annualContractValue": 1,
"annualContractValueLocal": 1,
"totalContractValue": 1,
"totalContractValueLocal": 1,
"startDate": "2026-11-23T03:49:24.864Z",
"endDate": "2026-11-23T03:49:24.864Z",
"duration": 1,
"renewalType": 1,
"nextRenewal": "2026-11-23T03:49:24.864Z",
"nextOptOut": "2026-11-23T03:49:24.864Z",
"signedOn": "2026-11-23T03:49:24.864Z",
"csmOwner": "",
"aeOwner": "",
"carr": 1,
"carrLocal": 1,
"cmrr": 1,
"cmrrLocal": 1,
"financialOverride": true,
"financialNote": "",
"currentFxRate": 1,
"csmRenewalConfidenceLevel": 1,
"isDetachedFromDeal": true,
"manuallyAddedPeople": [
""
],
"automaticallyAddedPeople": [
""
],
"partnerId": "",
"manuallyAddedPartnerContacts": [
""
],
"automaticallyAddedPartnerContacts": [
""
],
"onboardingStartDate": "2026-11-23T03:49:24.865Z",
"onboardingCompletedAt": "2026-11-23T03:49:24.865Z",
"uploadFiles": {
"additionalProperty": null
},
"additionalProperty": "anything"
}
]'
{
"additionalProperty": "anything"
}
