curl --request POST \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/configuration/presets \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"coverageTypeKey": "general_liability",
"setName": "$1M/$2M GL",
"limits": {
"limits": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Per Occurrence",
"amount": 1000000
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "Aggregate",
"amount": 2000000
}
]
}
}
'{
"id": "550e8400-e29b-41d4-a716-446655440100"
}Configuration Presets
Create Configuration Preset
Creates a new coverage limit preset for the company. The preset is stored
directly in the coverage_limit_presets table.
The coverageTypeKey must reference an existing coverage type (global or
company-specific). If the coverage type does not exist, a 404 is returned.
If isDefault is true, any existing default preset for the same coverage
type is automatically set to non-default. Only one preset per coverage type
can be the default at a time.
Required permission: company:update
POST
/
api
/
external
/
companies
/
{companyId}
/
configuration
/
presets
curl --request POST \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/configuration/presets \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"coverageTypeKey": "general_liability",
"setName": "$1M/$2M GL",
"limits": {
"limits": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Per Occurrence",
"amount": 1000000
},
{
"id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"name": "Aggregate",
"amount": 2000000
}
]
}
}
'{
"id": "550e8400-e29b-41d4-a716-446655440100"
}Authorizations
Body
application/json
Request body for creating a coverage limit preset
Was this page helpful?
