Skip to main content
PUT
/
api
/
external
/
companies
/
{companyId}
/
coverage-types
/
enabled
curl --request PUT \
  --url https://app.aiinsurance.io/api/external/companies/{companyId}/coverage-types/enabled \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "coverageTypeKeys": [
    "general_liability",
    "inland_marine"
  ]
}
'
{
  "enabledCoverageTypeKeys": [
    "general_liability",
    "inland_marine"
  ]
}

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 to set the enabled coverage types for a company

coverageTypeKeys
string[]
required

The complete list of coverage type keys to enable for the company. This replaces the existing list wholesale. At least one key must be provided.

Each key must be either a global coverage type or a company-specific coverage type owned by this company.

Minimum array length: 1
Minimum string length: 1
Example:
[
"general_liability",
"inland_marine",
"vfs_custom_type"
]

Response

Enabled coverage types updated successfully

enabledCoverageTypeKeys
string[]

The deduplicated list of coverage type keys that are now enabled