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
  • Street address

  • Partner area of responsibility

  • City

  • Country

  • Partner company name

  • Identifier of the parent partner company

  • Identifiers of the partner's contacts (partners_contacts IDs)

  • Partner phone number

  • Postal code

  • State or region

  • Partner status ID (1=Onboarding, 2=Active, 3=Inactive)

  • Partner type IDs (1=Reseller, 2=Referral, 3=System Integrator, 4=Technology Partner); a partner may have more than one

Responses

  • application/json
  • application/json
Request Example for put/{entity_id}
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-10-07T22:44:01.740Z",
  "additionalProperty": "anything"
}