Update Entity
Update an existing entity (PUT).
The body is validated against the full input schema, so every field the
schema marks as required must be present, even when its value does not
change; a body missing one is rejected with 422. Optional fields that are
omitted keep their stored values, and a field sent as null is cleared.
To change only some fields without resending the required ones, use
PATCH /{entity_id}.
Args: entity_id: Unique identifier of the entity to update entity_info: Entity data validated against the full input schema: - All required fields must be present - Omitted optional fields 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, or a record of a company hidden from the caller - 409: Update conflict (entity modified by another user) - 422: Validation error in request data, including a missing required 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: stringae
Owner max length:50nullableAccount Executive owner ID
- Type: numbernullableannual
Contract Value Annual contract value
- Type: numbernullableannual
Contract Value Local Annual contract value in local currency
- Type: numbernullablearr
Annual Recurring Revenue
- Type: numbernullablearr
Local Annual Recurring Revenue in local currency
- Type: array of stringnullableautomatically
Added Partner Contacts Partner contacts automatically added to this contract
- Type: array of stringnullableautomatically
Added People People automatically added to this contract
- Type: numbernullablecarr
Committed Annual Recurring Revenue
- Type: numbernullablecarr
Local Committed Annual Recurring Revenue in local currency
- Type: numbernullablecmrr
Committed Monthly Recurring Revenue
- Type: numbernullablecmrr
Local Committed Monthly Recurring Revenue in local currency
- Type: stringcompany
Id max length:50nullableIdentifier of the associated company
- additionalPropertyType: anythingproperty
Name
Responses
- application/json
- application/json
curl 'https://crm.dreamhub.ai/api/v1/contracts/{entity_id}?include_additionals=false' \
--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.166Z",
"endDate": "2026-11-23T03:49:24.166Z",
"duration": 1,
"renewalType": 1,
"nextRenewal": "2026-11-23T03:49:24.166Z",
"nextOptOut": "2026-11-23T03:49:24.166Z",
"signedOn": "2026-11-23T03:49:24.166Z",
"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.167Z",
"onboardingCompletedAt": "2026-11-23T03:49:24.167Z",
"uploadFiles": {
"additionalProperty": null
},
"additionalProperty": "anything"
}'
{
"name": "string",
"dealId": "string",
"companyId": "string",
"productId": "string",
"status": 1,
"arr": 1,
"arrLocal": 1,
"mrr": 1,
"mrrLocal": 1,
"currency": "string",
"revenueItems": [],
"annualContractValue": 1,
"annualContractValueLocal": 1,
"totalContractValue": 1,
"totalContractValueLocal": 1,
"startDate": "2026-11-23T03:49:24.192Z",
"endDate": "2026-11-23T03:49:24.192Z",
"duration": 1,
"renewalType": 1,
"nextRenewal": "2026-11-23T03:49:24.192Z",
"nextOptOut": "2026-11-23T03:49:24.192Z",
"signedOn": "2026-11-23T03:49:24.192Z",
"csmOwner": "string",
"aeOwner": "string",
"carr": 1,
"carrLocal": 1,
"cmrr": 1,
"cmrrLocal": 1,
"financialOverride": true,
"financialNote": "string",
"currentFxRate": 1,
"csmRenewalConfidenceLevel": 1,
"isDetachedFromDeal": true,
"manuallyAddedPeople": [
"string"
],
"automaticallyAddedPeople": [
"string"
],
"partnerId": "string",
"manuallyAddedPartnerContacts": [
"string"
],
"automaticallyAddedPartnerContacts": [
"string"
],
"onboardingStartDate": "2026-11-23T03:49:24.192Z",
"onboardingCompletedAt": "2026-11-23T03:49:24.192Z",
"uploadFiles": {
"additionalProperty": null
},
"id": "con-f47ac10b",
"calculatedCarr": 1,
"calculatedCarrLocal": 1,
"calculatedCmrr": 1,
"calculatedCmrrLocal": 1,
"calculatedAnnualContractValue": 1,
"calculatedAnnualContractValueLocal": 1,
"calculatedTotalContractValue": 1,
"calculatedTotalContractValueLocal": 1,
"calculatedArr": 1,
"calculatedArrLocal": 1,
"calculatedMrr": 1,
"calculatedMrrLocal": 1,
"closeFxRate": 1,
"currentFxRateRefreshedAt": "2026-11-23T03:49:24.193Z",
"currentFxRateModifiedBy": "string",
"onboardingStageId": "string",
"duplicatedFromContractId": "string",
"snapshotOfDealId": "string",
"createdAt": "2026-11-23T03:49:24.193Z",
"isDeleted": true,
"terminationNotice": {
"id": "string",
"contractId": "string",
"scope": "ENTIRE_CONTRACT",
"state": "SCHEDULED",
"noticeDate": "2026-11-23T03:49:24.194Z",
"effectiveEndDate": "2026-11-23T03:49:24.194Z",
"reasonId": 1,
"reasonName": "string",
"notes": "string",
"companyChurnId": "string",
"createdBy": "string",
"createdAt": "2026-11-23T03:49:24.194Z",
"items": [
{
"revenueItemId": "string",
"action": "END",
"newServiceEndDate": "2026-11-23T03:49:24.194Z",
"newTotalLocal": 1,
"originalServiceEndDate": "2026-11-23T03:49:24.194Z",
"originalTotalLocal": 1,
"originalAutoRenewal": true
}
]
},
"serviceCount": 1,
"period": "string",
"csmRenewalConfidenceLevelLabel": "string",
"onboardingStageName": "string",
"onboardingStatus": "string",
"percentageFromCsmRenewalBook": 1,
"durationDisplay": "string",
"additionalProperty": "anything"
}
