Update a company by lookup key
PATCH/companies/:lookupKey/:lookupValue
Update an existing company using dynamic lookup keys with comprehensive field validation and hierarchical relationship management. Supports partial updates for efficient data management.
Key Features
- Dynamic Lookup Keys: Access companies by
id
orsourceId
+source
combination - Partial Updates: Only provided fields are updated; existing data is preserved
- Parent-Child Relationships: Support for hierarchical company structures
- Field Validation: Comprehensive validation with detailed error messages
Request
Responses
- 200
- 400
- 404
Update a company by lookup key - 200
Update a company by lookup key - 400 (invalid schema)
Update a company by lookup key - 404