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"
]
}Set Enabled Coverage Types
Replaces the company’s enabled coverage types list wholesale. The provided
coverageTypeKeys array becomes the new complete list of enabled coverage
types for the company.
Each key must refer to an existing coverage type that is either:
- A global coverage type (e.g.,
general_liability,inland_marine) - A company-specific coverage type owned by this company
Duplicate keys in the request are automatically deduplicated. At least one key must be provided.
Coverage types that belong to other companies are treated as not found to avoid leaking information about other companies’ configurations.
Required permission: company:update
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
Body
Request to set the enabled coverage types for a company
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.
11[
"general_liability",
"inland_marine",
"vfs_custom_type"
]
Was this page helpful?
