curl --request PATCH \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/attorneys/{attorneyId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Updated Attorney Name"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440001",
"companyId": "660e8400-e29b-41d4-a716-446655440000",
"name": "Updated Attorney Name",
"email": "jane@smithlaw.com",
"phoneNumber": "+1-555-123-4567",
"lawFirmId": "770e8400-e29b-41d4-a716-446655440000",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-02-16T09:00:00.000Z"
}Attorneys
Update Attorney
Updates an existing attorney. Only send fields you want to change.
Send null for nullable fields to clear them.
Optional update fields:
name- Update attorney nameemail- Update email address (send null to clear)phoneNumber- Update phone number (send null to clear)lawFirmId- Update law firm association (send null to clear)
Required permission: company.attorney:update
PATCH
/
api
/
external
/
companies
/
{companyId}
/
attorneys
/
{attorneyId}
curl --request PATCH \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/attorneys/{attorneyId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Updated Attorney Name"
}
'{
"id": "550e8400-e29b-41d4-a716-446655440001",
"companyId": "660e8400-e29b-41d4-a716-446655440000",
"name": "Updated Attorney Name",
"email": "jane@smithlaw.com",
"phoneNumber": "+1-555-123-4567",
"lawFirmId": "770e8400-e29b-41d4-a716-446655440000",
"createdAt": "2026-01-15T10:30:00.000Z",
"updatedAt": "2026-02-16T09:00:00.000Z"
}Authorizations
Path Parameters
Body
application/json
Response
Attorney updated successfully
An attorney in the system
Was this page helpful?
