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 '
{
  "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

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.

defenseInsideLimit
enum<string>

Whether defense costs are inside or outside the limit

Available options:
inside,
outside
deductible
number

Deductible amount in dollars

retroactiveDate
string<date>

Retroactive date in ISO format (YYYY-MM-DD)

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 ID of the created preset