curl --request PATCH \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit/defendants/{defendantId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "newemail@example.com",
"phoneNumber": "+1-555-999-8888"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440001",
"companyId": "660e8400-e29b-41d4-a716-446655440000",
"lawsuitId": "770e8400-e29b-41d4-a716-446655440000",
"insuredId": null,
"nonInsuredName": "John Doe",
"phoneNumber": "+1-555-999-8888",
"email": "newemail@example.com",
"attorneyId": "880e8400-e29b-41d4-a716-446655440000",
"lawFirmId": null,
"createdAt": "2026-02-15T10:30:00.000Z",
"updatedAt": "2026-02-19T14:20:00.000Z"
}Defendants
Update Defendant
Updates a defendant. Only provided fields are updated.
Send null for a field to clear its value. Omit a field to preserve its existing value.
Required permission: company.event:export
PATCH
/
api
/
external
/
companies
/
{companyId}
/
events
/
{eventId}
/
lawsuit
/
defendants
/
{defendantId}
curl --request PATCH \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/events/{eventId}/lawsuit/defendants/{defendantId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "newemail@example.com",
"phoneNumber": "+1-555-999-8888"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440001",
"companyId": "660e8400-e29b-41d4-a716-446655440000",
"lawsuitId": "770e8400-e29b-41d4-a716-446655440000",
"insuredId": null,
"nonInsuredName": "John Doe",
"phoneNumber": "+1-555-999-8888",
"email": "newemail@example.com",
"attorneyId": "880e8400-e29b-41d4-a716-446655440000",
"lawFirmId": null,
"createdAt": "2026-02-15T10:30:00.000Z",
"updatedAt": "2026-02-19T14:20:00.000Z"
}Authorizations
Path Parameters
Body
application/json
Response
Updated defendant details
A defendant associated with a lawsuit
Was this page helpful?
