Skip to main content
POST
/
api
/
external
/
companies
/
{companyId}
/
configuration
/
rating
/
presets
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

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header.

Path Parameters

companyId
string<uuid>
required

Company identifier

Body

application/json

Request body for creating a coverage limit preset in a rating engine revision's config JSON

ratingEngineRevisionId
string<uuid>
required

The rating engine revision to add this preset to (must already exist)

revisionStrategy
enum<string>
required

How to handle the rating engine revision. UpdateExistingRevision modifies the specified revision in place. CreateNewRevision is not yet implemented and will return a 501 error.

Available options:
UpdateExistingRevision,
CreateNewRevision
coverageTypeKey
string
required

The coverage type key this preset belongs to (must exist in coverage_types)

Minimum string length: 1
setName
string
required

Display name for this preset

Minimum string length: 1
limits
object
required
isDefault
boolean

Whether this is the default preset for its coverage type. Defaults to false. Setting to true automatically unsets any existing default for the same coverage type.

defenseInsideLimit
enum<string>

Whether defense costs are inside or outside the limit

Available options:
inside,
outside
deductible
number

Deductible amount in dollars

waitingPeriodSettings
object

Waiting period configuration (opaque JSON)

deductibleSettings
object

Deductible default amount configuration (opaque JSON)

limitSettings
object

Limit default amounts configuration (opaque JSON)

retroactiveDateSettings
object

Retroactive date default amount configuration (opaque JSON)

priorPendingLitigationDateSettings
object

Prior/pending litigation date default amount configuration (opaque JSON)

Response

Coverage limit preset created successfully

id
string<uuid>
required

The server-generated ID of the created preset