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 - 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: stringaddressmax length:256nullable
Street address
- Type: stringarea
Of Responsibility max length:256nullablePartner area of responsibility
- Type: stringcitymax length:256nullable
City
- Type: stringcountrymax length:256nullable
Country
- Type: stringnamemax length:256nullable
Partner company name
- Type: stringparent
Partner max length:50nullableIdentifier of the parent partner company
- Type: array of stringpartner
Contacts Identifiers of the partner's contacts (partners_contacts IDs)
- Type: stringphone
Number max length:50nullablePartner phone number
- Type: stringpostal
Code max length:100nullablePostal code
- Type: stringstate
Region max length:256nullableState or region
- Type: integernullablestatus
Partner status ID (1=Onboarding, 2=Active, 3=Inactive)
- Type: array of integertype
Partner type IDs (1=Reseller, 2=Referral, 3=System Integrator, 4=Technology Partner); a partner may have more than one
- additionalPropertyType: anythingproperty
Name
Responses
- application/json
- application/json
curl 'https://crm.dreamhub.ai/api/v1/partners/{entity_id}?include_additionals=false' \
--request PUT \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"name": "",
"type": [
1
],
"status": 1,
"parentPartner": "",
"website": "",
"phoneNumber": "",
"areaOfResponsibility": "",
"partnerContacts": [
""
],
"address": "",
"city": "",
"stateRegion": "",
"postalCode": "",
"country": "",
"additionalProperty": "anything"
}'
{
"name": "string",
"type": [
1
],
"status": 1,
"parentPartner": "string",
"website": "string",
"phoneNumber": "string",
"areaOfResponsibility": "string",
"partnerContacts": [
"string"
],
"address": "string",
"city": "string",
"stateRegion": "string",
"postalCode": "string",
"country": "string",
"id": "par-f47ac10b",
"createdAt": "2026-11-23T03:49:35.330Z",
"additionalProperty": "anything"
}
