post
https://{baseURL}/services/apexrest/ThinkLP/incidents
Create case with optional nested persons/vehicles/items in single atomic request.
Read-Only Fields (Ignored if Sent):
incident_number- AutoNumber field (format:C-{number})total_estimated_value- Roll-up from Case Itemstotal_recovered_value- Roll-up from recovered Case Items- Audit fields:
created_date,last_modified_date, etc.
Date/Time Handling:
- Preferred:
incident_local_date+incident_local_time(separate fields) - Alternative:
incident_date_time(ISO 8601 combined) - Default: If only date provided, time = midnight
Location Fields (Lookup Precedence):
location_number- External identifier (for lookup)location_id- Direct Salesforce ID- Rule: If both provided,
location_idtakes precedence
Value Fields:
initial_case_value- Writable estimate at creation- Total case value auto-calculated from Case Items (read-only)