curl --request PATCH \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/brokerages/{brokerageId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Updated Agency Name"
}
'
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "Updated Agency Name",
"commissionPaymentMethod": "agencyBill",
"niprBrokerageNumber": "12345678",
"email": "contact@acmeagency.com",
"addressStructured": {
"line1": "123 Main Street",
"line2": "Suite 100",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US"
},
"phone": "+1-555-123-4567",
"defaultCommissionPercentage": 15,
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-20T09:00:00.000Z"
}
Brokerages
Update Brokerage
Updates an existing brokerage. Only send fields you want to change.
Optional update fields:
name- Update brokerage namecommissionPaymentMethod- Update commission handling methodniprBrokerageNumber- Update NIPR numberemail- Update email addressaddressStructured- Update addressphone- Update phone numberdefaultCommissionPercentage- Update default commission
Required permission: company.brokerage:create
PATCH
/
api
/
external
/
companies
/
{companyId}
/
brokerages
/
{brokerageId}
curl --request PATCH \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/brokerages/{brokerageId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Updated Agency Name"
}
'
{
"id": "550e8400-e29b-41d4-a716-446655440001",
"name": "Updated Agency Name",
"commissionPaymentMethod": "agencyBill",
"niprBrokerageNumber": "12345678",
"email": "contact@acmeagency.com",
"addressStructured": {
"line1": "123 Main Street",
"line2": "Suite 100",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US"
},
"phone": "+1-555-123-4567",
"defaultCommissionPercentage": 15,
"createdAt": "2025-01-15T10:30:00.000Z",
"updatedAt": "2025-01-20T09:00:00.000Z"
}
Authorizations
Path Parameters
Body
application/json
Response
Brokerage updated successfully
A brokerage (insurance agency or broker) in the system
Was this page helpful?
