curl --request POST \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/configuration/rating/presets \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"ratingEngineRevisionId": "e06153b8-53c8-4305-bc23-0b67450ec450",
"revisionStrategy": "UpdateExistingRevision",
"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"
}Create Rating Revision Preset
Creates a new coverage limit preset in the rating engine revision’s config JSON.
This endpoint is for rating-engine companies — presets are stored in
rating_engine_revisions.config.coverageLimitPresets, not in the
coverage_limit_presets table.
For non-rating-engine companies, use POST /configuration/presets instead.
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 within the revision’s config is automatically set to non-default.
Required permission: company:update
curl --request POST \
--url https://app.aiinsurance.io/api/external/companies/{companyId}/configuration/rating/presets \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"ratingEngineRevisionId": "e06153b8-53c8-4305-bc23-0b67450ec450",
"revisionStrategy": "UpdateExistingRevision",
"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
Request body for creating a coverage limit preset in a rating engine revision's config JSON
Was this page helpful?
