Bulk Create Entities

​

Bulk create multiple entities in a single request.

The operation is partial-safe:

  • If some entities fail to create, successful creates are still committed.
  • The HTTP status is set to 206 Partial Content when at least one entity fails.
  • At most 500 items per request; a larger one is refused with 413 before anything is written. Send bigger loads in batches of 500 or fewer.

Args: entities_info: List of entity payloads to create (same shape as the regular create endpoint's body). Each item: - Must include all required fields for the entity. - May include custom-field values.

Returns: JSON object with: - successfulCount (int): number of entities created successfully - failedCount (int): number of entities that failed to create - successfulIds (List[str]): IDs of created entities - failedIds (List[str]): IDs (when available) or indices of failed entities - errors (Dict[str,str]): mapping of index or ID → error description

Body·Entities Info

required
application/json

Responses

  • application/json
  • application/json
Request Example for post/bulk/create
curl https://crm.dreamhub.ai/api/v1/contracts/bulk/create \
  --request POST \
  --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.743Z",
    "endDate": "2026-11-23T03:49:24.743Z",
    "duration": 1,
    "renewalType": 1,
    "nextRenewal": "2026-11-23T03:49:24.744Z",
    "nextOptOut": "2026-11-23T03:49:24.744Z",
    "signedOn": "2026-11-23T03:49:24.744Z",
    "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.744Z",
    "onboardingCompletedAt": "2026-11-23T03:49:24.744Z",
    "uploadFiles": {
      "additionalProperty": null
    },
    "additionalProperty": "anything"
  }
]'
{
  "additionalProperty": "anything"
}