> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pingintel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Coverage Option with Terms

> Saves a coverage option, all of its peril groups (with their subperils) and all of its zones in one atomic request. The usual flow is to fetch the coverage option with Get Coverage Option, edit it, and PUT it back here.

**Coverage option fields**

- `name` and `bi_limit_type` are required. `default_bi_period_days` is cleared when omitted.
- `uuid` is optional because the URL already identifies the coverage option. If you send it, it must match the URL.

**`peril_terms`: one entry per peril group**

- Every core peril group must be listed. Omitting one is an error, not a no-op. User-created groups you leave out are left unchanged, not deleted.
- Each entry needs `display_name`, `group_label` and `subperils`. `display_name` must be unique across the coverage option. Include the group's `uuid` to update it. Leave `uuid` out to create a new user-created group with that `group_label` (e.g. `EQ2`).
- Every subperil on the coverage option must be listed, under exactly one group's `subperils`. A subperil belongs to the group it is listed under, so listing it under a different group moves it there. - On an existing group, fields you omit keep their current values. Changing `is_sublimit_combined` or `is_deductible_combined` clears the fields that no longer apply, as on the single peril group endpoint, and sending a field that the entry's toggles rule out is a validation error. Groups whose `is_bi_split_allowed` is false reject both toggles, even unchanged values, so leave them out. A new group accepts the same terms and follows the same rules, starting from combined sublimit and deductible.

**`per_zone_terms`: one entry per zone**

- Every zone must be listed, identified by `uuid`. Zones cannot be created or deleted here.
- Fields you omit keep their current values. Send `peril_group` (a peril group uuid) to reassign the zone. The split/combined toggles and `pd_*`/`bi_*` fields are only accepted when zone PD/BI split is enabled, with the same rules as the single zone endpoint.

**Errors**

Nothing is saved if any part of the body is rejected. Errors on list entries are positional: `peril_terms`, `per_zone_terms` and each group's `subperils` return a list the same length as the one you sent, with `{}` for entries that are valid. Errors about something missing from the body (a core group, a subperil or a zone) are returned in `non_field_errors`.



## OpenAPI

````yaml https://vision.pingintel.com/api/schema/?format=json put /api/v1/submission/{pingid}/cat/coverage-options/bulk/{uuid}
openapi: 3.0.3
info:
  title: Ping.Vision API
  version: v1.0
  description: >
    ### Ping.Vision API


    This API provides convenient, efficient access to Ping Intel's data and
    services. It is designed to be used by developers and data scientists to
    integrate Ping Intel's capabilities into their applications.


    Once SSO is set up with your organization, you can create an Organization or
    Personal API key at https://auth.pingintel.com/org.


    Please see the Python client library
    [pingintel-api](https://pypi.org/project/pingintel-api/) for commandline
    tools and programmatic access, and you

    can refer to the following documentation for details on interacting with the
    system via the HTTP API.
  contact:
    email: support@pingintel.com
    name: Ping Intel
    url: https://www.pingintel.com
servers:
  - url: https://vision.pingintel.com
    description: Ping.Vision API
  - url: https://vision.staging.pingintel.com
    description: Ping.Vision API (staging)
security: []
tags:
  - name: Create Submission
    description: The Create Submission API allows you to add new data into the system.
  - name: Get Submission Data
    description: >-
      The Get Submission Data API lets you list and look up submissions, track
      their events, download their documents, and generate or retrieve their
      outputs.
  - name: Update Submission
    description: >-
      The Update Submission API provides various endpoints to update, modify, or
      act upon existing submissions.
  - name: CAT Modeling
    description: >-
      The CAT Modeling API manages catastrophe modeling setup for a submission:
      coverage options, peril groups, layer structures, and modeling options. It
      also generates Acc/Loc files for CAT models.
  - name: User Memberships
    description: >-
      The User Memberships API allows you to add, remove, and change the role of
      users in different teams, divisions, or companies.
  - name: Reference Data
    description: >-
      The Reference Data API lists lookup values used by other endpoints, such
      as the submission statuses available to a division.
  - name: Account
    description: >-
      The Account API returns information about the authenticated user: their
      identity, permissions, and sitewide settings.
paths:
  /api/v1/submission/{pingid}/cat/coverage-options/bulk/{uuid}:
    put:
      tags:
        - CAT Modeling
      summary: Update Coverage Option with Terms
      description: >-
        Saves a coverage option, all of its peril groups (with their subperils)
        and all of its zones in one atomic request. The usual flow is to fetch
        the coverage option with Get Coverage Option, edit it, and PUT it back
        here.


        **Coverage option fields**


        - `name` and `bi_limit_type` are required. `default_bi_period_days` is
        cleared when omitted.

        - `uuid` is optional because the URL already identifies the coverage
        option. If you send it, it must match the URL.


        **`peril_terms`: one entry per peril group**


        - Every core peril group must be listed. Omitting one is an error, not a
        no-op. User-created groups you leave out are left unchanged, not
        deleted.

        - Each entry needs `display_name`, `group_label` and `subperils`.
        `display_name` must be unique across the coverage option. Include the
        group's `uuid` to update it. Leave `uuid` out to create a new
        user-created group with that `group_label` (e.g. `EQ2`).

        - Every subperil on the coverage option must be listed, under exactly
        one group's `subperils`. A subperil belongs to the group it is listed
        under, so listing it under a different group moves it there. - On an
        existing group, fields you omit keep their current values. Changing
        `is_sublimit_combined` or `is_deductible_combined` clears the fields
        that no longer apply, as on the single peril group endpoint, and sending
        a field that the entry's toggles rule out is a validation error. Groups
        whose `is_bi_split_allowed` is false reject both toggles, even unchanged
        values, so leave them out. A new group accepts the same terms and
        follows the same rules, starting from combined sublimit and deductible.


        **`per_zone_terms`: one entry per zone**


        - Every zone must be listed, identified by `uuid`. Zones cannot be
        created or deleted here.

        - Fields you omit keep their current values. Send `peril_group` (a peril
        group uuid) to reassign the zone. The split/combined toggles and
        `pd_*`/`bi_*` fields are only accepted when zone PD/BI split is enabled,
        with the same rules as the single zone endpoint.


        **Errors**


        Nothing is saved if any part of the body is rejected. Errors on list
        entries are positional: `peril_terms`, `per_zone_terms` and each group's
        `subperils` return a list the same length as the one you sent, with `{}`
        for entries that are valid. Errors about something missing from the body
        (a core group, a subperil or a zone) are returned in `non_field_errors`.
      operationId: api_v1_submission_cat_coverage_options_bulk_update
      parameters:
        - in: path
          name: pingid
          schema:
            type: string
          required: true
        - in: path
          name: uuid
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CoverageOptionBulkUpdate'
            examples:
              UpdateTerms:
                value:
                  name: Option 1 new
                  bi_limit_type: GP
                  peril_terms:
                    - uuid: 019dd58e-eb2a-7958-8070-570003e4ee51
                      group_label: HU
                      display_name: HU
                      included: false
                      location_deductible: 67
                      location_deductible_format: C
                      erodes_annual_aggregate: true
                      subperils:
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee52
                          included: true
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee53
                          included: true
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee54
                          included: true
                    - uuid: 019dd58e-eb2a-7958-8070-570003e4ee55
                      group_label: SCS
                      display_name: SCS new
                      included: true
                      is_sublimit_combined: false
                      is_deductible_combined: false
                      agg_deductible: 250
                      agg_limit: 350
                      bi_days_deductible: 99
                      pd_min_deductible: 600
                      pd_max_deductible: 500
                      pd_building_location_deductible: 101
                      pd_contents_location_deductible: 102
                      bi_min_deductible: 4000
                      bi_max_deductible: 5000
                      bi_location_deductible: 1000
                      bi_location_deductible_format: C
                      erodes_annual_aggregate: true
                      subperils:
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee56
                          included: true
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee57
                          included: true
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee58
                          included: true
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee59
                          included: true
                  per_zone_terms:
                    - uuid: 019dd58e-eb2a-7958-8070-570003e4ee60
                      included: true
                      sublimit: 500
                      bi_days_deductible: 224
                      erodes_annual_aggregate: false
                    - uuid: 019dd58e-eb2a-7958-8070-570003e4ee61
                      included: false
                      per_location_deductible: 224
                      per_location_deductible_format: C
                      per_location_deductible_type: CT
                      erodes_annual_aggregate: false
                  extra_data_annual_premium: 1000
                  extra_data_policy_term: '2024-01-01'
                summary: Update terms
                description: >-
                  Renames the coverage option, excludes `HU` and sets its
                  location deductible, splits the `SCS` group's PD/BI terms, and
                  updates two EQ zones. Shortened for readability: a real
                  request must also list every other peril group (NC, EQ, IF, WF
                  here) and every other zone. `pd_building_location_deductible`
                  and `pd_contents_location_deductible` require the PD
                  building/contents split to be enabled; otherwise use
                  `pd_location_deductible`.
              CreateAGroupAndMoveASubperilIntoIt:
                value:
                  name: Option 1
                  bi_limit_type: GE
                  peril_terms:
                    - uuid: 019dd58e-eb2a-7958-8070-570003e4ee70
                      group_label: EQ
                      display_name: EQ
                      included: true
                      erodes_annual_aggregate: false
                      subperils:
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee72
                          included: true
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee73
                          included: true
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee74
                          included: true
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee75
                          included: true
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee76
                          included: true
                    - group_label: EQ2
                      display_name: Earthquake 2
                      included: true
                      erodes_annual_aggregate: false
                      subperils:
                        - uuid: 019dd58e-eb2a-7958-8070-570003e4ee71
                          included: true
                  per_zone_terms:
                    - uuid: 019dd58e-eb2a-7958-8070-570003e4ee60
                      included: true
                      erodes_annual_aggregate: false
                  extra_data_annual_premium: 1000
                  extra_data_policy_term: '2024-01-01'
                summary: Create a group and move a subperil into it
                description: >-
                  Adds a user-created `EQ2` group (no `uuid`) and moves
                  `EQ_Shake` into it from `EQ` by listing it under `EQ2`
                  instead. `EQ` lists its other five subperils. Shortened: a
                  real request must also list every other peril group and every
                  zone.
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CoverageOptionBulkUpdate'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CoverageOptionBulkUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CoverageOptionBulkUpdateResponse'
              examples:
                Example:
                  value:
                    bi_limit_type: GP
                    created_time: '2026-10-14T14:32:42.194811Z'
                    default_bi_period_days: null
                    annual_aggregate_per_occ_deductible: null
                    annual_aggregate_deductible: null
                    annual_aggregate_per_occ_max: null
                    annual_aggregate_trailing_deductible: null
                    extra_data:
                      annual_premium: '200'
                      other_data: some text
                    modified_time: '2026-10-14T14:32:43.381897Z'
                    name: Option 1 new
                    per_zone_terms:
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: EQ
                        peril_group_uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6bd6-7f03-b8e7-567defeaf9a6
                        zone: CA
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: EQ
                        peril_group_uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6bf7-78e5-a247-528ec23d7e0f
                        zone: NewMadrid
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: EQ
                        peril_group_uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6c04-7eb6-b611-ab520a4e654a
                        zone: PacNW
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: EQ
                        peril_group_uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6c12-72a6-bac9-70e7a86bcd64
                        zone: HI
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: EQ
                        peril_group_uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6c1f-710b-99d7-df37a8e5f316
                        zone: AK
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: EQ
                        peril_group_uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6c2d-78fc-9261-f5b3524aeac1
                        zone: AllOther
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: HU
                        peril_group_uuid: 01a13ad4-6d45-7334-8cb8-97e3cadece0a
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6c3b-747e-91c5-a0be80028102
                        zone: FL
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: HU
                        peril_group_uuid: 01a13ad4-6d45-7334-8cb8-97e3cadece0a
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6c4a-70e0-9032-4f6d932f7f7b
                        zone: Tier1
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: HU
                        peril_group_uuid: 01a13ad4-6d45-7334-8cb8-97e3cadece0a
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6c58-7698-b2b1-bfe91a3d10a0
                        zone: Tier2
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: HU
                        peril_group_uuid: 01a13ad4-6d45-7334-8cb8-97e3cadece0a
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6c67-79a1-bb00-67a1006306f2
                        zone: AllOther
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: SCS
                        peril_group_uuid: 01a13ad4-6d6c-7420-9e8f-fdd1e2ab7a2e
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6c75-74b8-9d25-276c0b0a0eab
                        zone: Tier1
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: SCS
                        peril_group_uuid: 01a13ad4-6d6c-7420-9e8f-fdd1e2ab7a2e
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6c84-7250-8478-d3b0f68a7cbb
                        zone: Tier2
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: SCS
                        peril_group_uuid: 01a13ad4-6d6c-7420-9e8f-fdd1e2ab7a2e
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6c94-7cff-acc5-01c1b7c3c83d
                        zone: AllOther
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: IF
                        peril_group_uuid: 01a13ad4-6d9e-7dbc-a3e2-213cbfbd07f3
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6ca3-7b8e-998c-c4d1b2769bc4
                        zone: SFHA
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: IF
                        peril_group_uuid: 01a13ad4-6d9e-7dbc-a3e2-213cbfbd07f3
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6cb4-749f-8637-fb4c66fd707e
                        zone: MFHA
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: IF
                        peril_group_uuid: 01a13ad4-6d9e-7dbc-a3e2-213cbfbd07f3
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6cc5-7b78-811b-b7ff80574e05
                        zone: AllOther
                      - agg_deductible: null
                        agg_limit: null
                        bi_days_deductible: null
                        bi_location_deductible: null
                        bi_location_deductible_format: C
                        bi_min_deductible: null
                        bi_sublimit: null
                        deductible_type: 'N'
                        erodes_annual_aggregate: null
                        included: true
                        is_deductible_combined: true
                        is_sublimit_combined: true
                        location_count: 0
                        max_deductible: null
                        min_deductible: null
                        pd_building_location_deductible: null
                        pd_building_location_deductible_format: C
                        pd_contents_location_deductible: null
                        pd_contents_location_deductible_format: C
                        pd_min_deductible: null
                        pd_sublimit: null
                        per_location_deductible: null
                        per_location_deductible_format: C
                        per_location_deductible_type: null
                        peril_class: WF
                        peril_group_uuid: 01a13ad4-6dc3-73e7-bb1a-3a9563c583ed
                        sublimit: null
                        tiv: null
                        uuid: 01a13ad4-6cd8-7b80-89b6-642559b0b1be
                        zone: AllOther
                    peril_sections:
                      - name: NC
                        peril_groups:
                          - agg_deductible: null
                            agg_limit: null
                            bi_days_deductible: null
                            bi_location_deductible: null
                            bi_location_deductible_format: C
                            bi_max_deductible: null
                            bi_min_deductible: null
                            bi_sublimit: null
                            display_name: NC
                            erodes_annual_aggregate: null
                            group_label: NC
                            included: true
                            is_bi_split_allowed: true
                            is_deductible_combined: true
                            is_sublimit_combined: true
                            is_user_created: false
                            location_deductible: null
                            location_deductible_format: C
                            location_deductible_type: CT
                            max_deductible: null
                            min_deductible: null
                            pd_building_location_deductible: null
                            pd_building_location_deductible_format: C
                            pd_contents_location_deductible: null
                            pd_contents_location_deductible_format: C
                            pd_max_deductible: null
                            pd_min_deductible: null
                            pd_sublimit: null
                            section_name: NC
                            section_uuid: 01a13ad4-6cea-7aac-ab3e-65316814992c
                            self_insured_retentions: null
                            sublimit: null
                            subperils:
                              - included: true
                                name: AOP
                                peril_group_uuid: 01a13ad4-6cec-797c-9993-c3222c283879
                                peril_type: NonCat
                                uuid: 01a13ad4-6d0d-7c6b-8c7b-2242562a3906
                            uuid: 01a13ad4-6cec-797c-9993-c3222c283879
                        uuid: 01a13ad4-6cea-7aac-ab3e-65316814992c
                      - name: EQ
                        peril_groups:
                          - agg_deductible: null
                            agg_limit: null
                            bi_days_deductible: null
                            bi_location_deductible: null
                            bi_location_deductible_format: C
                            bi_max_deductible: null
                            bi_min_deductible: null
                            bi_sublimit: null
                            display_name: EQ
                            erodes_annual_aggregate: null
                            group_label: EQ
                            included: true
                            is_bi_split_allowed: true
                            is_deductible_combined: true
                            is_sublimit_combined: true
                            is_user_created: false
                            location_deductible: null
                            location_deductible_format: C
                            location_deductible_type: CT
                            max_deductible: null
                            min_deductible: null
                            pd_building_location_deductible: null
                            pd_building_location_deductible_format: C
                            pd_contents_location_deductible: null
                            pd_contents_location_deductible_format: C
                            pd_max_deductible: null
                            pd_min_deductible: null
                            pd_sublimit: null
                            section_name: EQ
                            section_uuid: 01a13ad4-6d14-71c2-b532-e04c82880364
                            self_insured_retentions: null
                            sublimit: null
                            subperils:
                              - included: true
                                name: Ground Shake
                                peril_group_uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                                peril_type: EQ_Shake
                                uuid: 01a13ad4-6d2f-72ad-b752-df8d413029bf
                              - included: true
                                name: Fire Following
                                peril_group_uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                                peril_type: EQ_Fire
                                uuid: 01a13ad4-6d33-7438-bb9a-3d4a8f39e491
                              - included: true
                                name: Sprinkler Leakage
                                peril_group_uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                                peril_type: EQ_Sprinkler
                                uuid: 01a13ad4-6d36-7918-a060-cab32e9afa80
                              - included: true
                                name: Landslide
                                peril_group_uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                                peril_type: EQ_Landslide
                                uuid: 01a13ad4-6d3a-7984-92ec-422e62d42f01
                              - included: true
                                name: Tsunami
                                peril_group_uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                                peril_type: EQ_Tsunami
                                uuid: 01a13ad4-6d3d-77c9-89cd-75d7bdf6aff3
                              - included: true
                                name: Liquefaction
                                peril_group_uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                                peril_type: EQ_Liquefaction
                                uuid: 01a13ad4-6d41-70a3-8d36-4d063678fea8
                            uuid: 01a13ad4-6d15-7ba5-ae0b-2df1180973e7
                        uuid: 01a13ad4-6d14-71c2-b532-e04c82880364
                      - name: HU
                        peril_groups:
                          - agg_deductible: null
                            agg_limit: null
                            bi_days_deductible: null
                            bi_location_deductible: null
                            bi_location_deductible_format: C
                            bi_max_deductible: null
                            bi_min_deductible: null
                            bi_sublimit: null
                            display_name: HU
                            erodes_annual_aggregate: null
                            group_label: HU
                            included: true
                            is_bi_split_allowed: true
                            is_deductible_combined: true
                            is_sublimit_combined: true
                            is_user_created: false
                            location_deductible: null
                            location_deductible_format: C
                            location_deductible_type: CT
                            max_deductible: null
                            min_deductible: null
                            pd_building_location_deductible: null
                            pd_building_location_deductible_format: C
                            pd_contents_location_deductible: null
                            pd_contents_location_deductible_format: C
                            pd_max_deductible: null
                            pd_min_deductible: null
                            pd_sublimit: null
                            section_name: HU
                            section_uuid: 01a13ad4-6d44-70e5-b82e-83792ae9f424
                            self_insured_retentions: null
                            sublimit: null
                            subperils:
                              - included: true
                                name: Wind Only
                                peril_group_uuid: 01a13ad4-6d45-7334-8cb8-97e3cadece0a
                                peril_type: HU_Wind
                                uuid: 01a13ad4-6d5f-7aa5-afe6-8a54fdba093f
                              - included: true
                                name: Storm Surge
                                peril_group_uuid: 01a13ad4-6d45-7334-8cb8-97e3cadece0a
                                peril_type: HU_Surge
                                uuid: 01a13ad4-6d63-787c-ae82-753132a8d4b1
                              - included: true
                                name: Precipitation Flood
                                peril_group_uuid: 01a13ad4-6d45-7334-8cb8-97e3cadece0a
                                peril_type: HU_PrecipitationFlood
                                uuid: 01a13ad4-6d67-7590-a85d-09678c9131d8
                            uuid: 01a13ad4-6d45-7334-8cb8-97e3cadece0a
                        uuid: 01a13ad4-6d44-70e5-b82e-83792ae9f424
                      - name: SCS
                        peril_groups:
                          - agg_deductible: null
                            agg_limit: null
                            bi_days_deductible: null
                            bi_location_deductible: null
                            bi_location_deductible_format: C
                            bi_max_deductible: null
                            bi_min_deductible: null
                            bi_sublimit: null
                            display_name: SCS
                            erodes_annual_aggregate: null
                            group_label: SCS
                            included: true
                            is_bi_split_allowed: true
                            is_deductible_combined: true
                            is_sublimit_combined: true
                            is_user_created: false
                            location_deductible: null
                            location_deductible_format: C
                            location_deductible_type: CT
                            max_deductible: null
                            min_deductible: null
                            pd_building_location_deductible: null
                            pd_building_location_deductible_format: C
                            pd_contents_location_deductible: null
                            pd_contents_location_deductible_format: C
                            pd_max_deductible: null
                            pd_min_deductible: null
                            pd_sublimit: null
                            section_name: SCS
                            section_uuid: 01a13ad4-6d6b-720c-9766-ac15c73bb307
                            self_insured_retentions: null
                            sublimit: null
                            subperils:
                              - included: true
                                name: Hail
                                peril_group_uuid: 01a13ad4-6d6c-7420-9e8f-fdd1e2ab7a2e
                                peril_type: Hail
                                uuid: 01a13ad4-6d8d-743b-a628-49c45d260a8d
                              - included: true
                                name: Straight Line Wind
                                peril_group_uuid: 01a13ad4-6d6c-7420-9e8f-fdd1e2ab7a2e
                                peril_type: StraightLineWind
                                uuid: 01a13ad4-6d91-7b66-b00d-c2f94d827897
                              - included: true
                                name: Tornado
                                peril_group_uuid: 01a13ad4-6d6c-7420-9e8f-fdd1e2ab7a2e
                                peril_type: Tornado
                                uuid: 01a13ad4-6d95-7504-99a2-bb2cbbe5ec6c
                              - included: true
                                name: Winter Storm
                                peril_group_uuid: 01a13ad4-6d6c-7420-9e8f-fdd1e2ab7a2e
                                peril_type: WinterStorm
                                uuid: 01a13ad4-6d99-785c-b560-51598d9d09d4
                            uuid: 01a13ad4-6d6c-7420-9e8f-fdd1e2ab7a2e
                        uuid: 01a13ad4-6d6b-720c-9766-ac15c73bb307
                      - name: IF
                        peril_groups:
                          - agg_deductible: null
                            agg_limit: null
                            bi_days_deductible: null
                            bi_location_deductible: null
                            bi_location_deductible_format: C
                            bi_max_deductible: null
                            bi_min_deductible: null
                            bi_sublimit: null
                            display_name: IF
                            erodes_annual_aggregate: null
                            group_label: IF
                            included: true
                            is_bi_split_allowed: true
                            is_deductible_combined: true
                            is_sublimit_combined: true
                            is_user_created: false
                            location_deductible: null
                            location_deductible_format: C
                            location_deductible_type: CT
                            max_deductible: null
                            min_deductible: null
                            pd_building_location_deductible: null
                            pd_building_location_deductible_format: C
                            pd_contents_location_deductible: null
                            pd_contents_location_deductible_format: C
                            pd_max_deductible: null
                            pd_min_deductible: null
                            pd_sublimit: null
                            section_name: IF
                            section_uuid: 01a13ad4-6d9d-7769-b0b8-076426c41ad3
                            self_insured_retentions: null
                            sublimit: null
                            subperils:
                              - included: true
                                name: Inland Flood
                                peril_group_uuid: 01a13ad4-6d9e-7dbc-a3e2-213cbfbd07f3
                                peril_type: InlandFlood
                                uuid: 01a13ad4-6dbd-7a45-b372-acbd79abe8b5
                            uuid: 01a13ad4-6d9e-7dbc-a3e2-213cbfbd07f3
                        uuid: 01a13ad4-6d9d-7769-b0b8-076426c41ad3
                      - name: WF
                        peril_groups:
                          - agg_deductible: null
                            agg_limit: null
                            bi_days_deductible: null
                            bi_location_deductible: null
                            bi_location_deductible_format: C
                            bi_max_deductible: null
                            bi_min_deductible: null
                            bi_sublimit: null
                            display_name: WF
                            erodes_annual_aggregate: null
                            group_label: WF
                            included: true
                            is_bi_split_allowed: true
                            is_deductible_combined: true
                            is_sublimit_combined: true
                            is_user_created: false
                            location_deductible: null
                            location_deductible_format: C
                            location_deductible_type: CT
                            max_deductible: null
                            min_deductible: null
                            pd_building_location_deductible: null
                            pd_building_location_deductible_format: C
                            pd_contents_location_deductible: null
                            pd_contents_location_deductible_format: C
                            pd_max_deductible: null
                            pd_min_deductible: null
                            pd_sublimit: null
                            section_name: WF
                            section_uuid: 01a13ad4-6dc1-74e8-b3a8-effbb344d091
                            self_insured_retentions: null
                            sublimit: null
                            subperils:
                              - included: true
                                name: Wildfire/Bushfire
                                peril_group_uuid: 01a13ad4-6dc3-73e7-bb1a-3a9563c583ed
                                peril_type: Wildfire
                                uuid: 01a13ad4-6de6-798b-9529-cfd623beb635
                              - included: true
                                name: Smoke
                                peril_group_uuid: 01a13ad4-6dc3-73e7-bb1a-3a9563c583ed
                                peril_type: Smoke
                                uuid: 01a13ad4-6dea-711a-b0cf-db397beb50c0
                            uuid: 01a13ad4-6dc3-73e7-bb1a-3a9563c583ed
                        uuid: 01a13ad4-6dc1-74e8-b3a8-effbb344d091
                    uuid: 01a13ad4-6bd2-79fe-aeee-661b51d89382
          description: >-
            The updated coverage option, in the same shape as Get Coverage
            Option, minus `policy_terms_config` and each subperil's
            `allowed_peril_groups`.
        '400':
          content:
            application/json:
              schema:
                type: object
                additionalProperties: {}
              examples:
                InvalidValuesInAZone,ANewGroupAndASubperil:
                  value:
                    per_zone_terms:
                      - min_deductible:
                          - A valid number is required.
                      - {}
                      - {}
                    peril_terms:
                      - {}
                      - subperils:
                          - uuid:
                              - Must be a valid UUID.
                          - {}
                          - {}
                          - {}
                          - {}
                          - {}
                      - {}
                      - {}
                      - {}
                      - {}
                      - max_deductible:
                          - A valid number is required.
                  summary: Invalid values in a zone, a new group and a subperil
                  description: >-
                    Positional errors: the 1st zone has a bad `min_deductible`,
                    the 2nd peril group has a malformed subperil `uuid`, and the
                    7th (a new group) has a bad `max_deductible`. Shortened
                    here; the real `per_zone_terms` list has one entry per zone
                    sent.
                SubperilNotAllowedInItsGroup:
                  value:
                    peril_terms:
                      - {}
                      - {}
                      - {}
                      - {}
                      - {}
                      - {}
                      - subperils:
                          - uuid:
                              - >-
                                Subperil "Wind Only" is not allowed in group
                                "EQ2".
                  summary: Subperil not allowed in its group
                  description: '`HU_Wind` was listed under a new `EQ2` group, the 7th entry.'
                DuplicateDisplayName:
                  value:
                    peril_terms:
                      - {}
                      - {}
                      - {}
                      - {}
                      - {}
                      - {}
                      - display_name:
                          - >-
                            A group with display name "EQ" already exists on
                            this coverage option.
                  summary: Duplicate display name
                  description: >-
                    A new group (7th entry) reused the display name of the
                    existing `EQ` group.
                MissingSubperil:
                  value:
                    non_field_errors:
                      - 'The following subperils are missing: HU_Wind'
                  summary: Missing subperil
                  description: >-
                    `HU_Wind` was removed from the `HU` group and not listed
                    under any other group.
                MissingZone:
                  value:
                    non_field_errors:
                      - 'The following zones are missing: EQ - CA'
                  summary: Missing zone
                  description: The `EQ - CA` zone was left out of `per_zone_terms`.
          description: Validation errors. Nothing was saved.
      security:
        - authorization_header: []
components:
  schemas:
    CoverageOptionBulkUpdate:
      type: object
      description: >-
        The complete state of a coverage option: its own fields, every peril
        group, every zone.
      properties:
        bi_limit_type:
          enum:
            - GE
            - GP
          type: string
          x-spec-enum-id: f81ee74b088734af
          description: |-
            GE: Gross Earnings. GP: Gross Profits.

            * `GE` - Gross Earnings
            * `GP` - Gross Profits
        name:
          type: string
          description: Name of the coverage option.
        per_zone_terms:
          type: array
          items:
            $ref: '#/components/schemas/CoverageOptionBulkZoneTerm'
          description: Every zone on this coverage option. Required.
        peril_terms:
          type: array
          items:
            $ref: '#/components/schemas/CoverageOptionBulkPerilTerm'
          description: Every peril group on this coverage option. Required.
        annual_aggregate_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
          description: Annual aggregate deductible. Omit to clear it.
        annual_aggregate_per_occ_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
          description: Annual aggregate per occurrence deductible. Omit to clear it.
        annual_aggregate_per_occ_max:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
          description: Annual aggregate per occurrence maximum. Omit to clear it.
        annual_aggregate_trailing_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
          description: Annual aggregate trailing deductible. Omit to clear it.
        default_bi_period_days:
          type: integer
          nullable: true
          description: Default BI period in days. Omit to clear it.
        uuid:
          type: string
          format: uuid
          description: >-
            UUID of the coverage option. Optional -- the URL identifies it. When
            supplied it must match, which guards a client with several options
            loaded against a mis-targeted save.
      required:
        - bi_limit_type
        - name
        - per_zone_terms
        - peril_terms
    CoverageOptionBulkUpdateResponse:
      type: object
      description: >-
        The detail representation, minus what a bulk update can neither change
        nor is asked for.


        `policy_terms_config` is dropped (this endpoint never touches it), as is
        each subperil's

        `allowed_peril_groups`.
      properties:
        annual_aggregate_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        annual_aggregate_per_occ_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        annual_aggregate_per_occ_max:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        annual_aggregate_trailing_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        bi_limit_type:
          enum:
            - GE
            - GP
            - null
          type: string
          description: |-
            * `GE` - Gross Earnings
            * `GP` - Gross Profits
          x-spec-enum-id: f81ee74b088734af
          readOnly: true
          nullable: true
        created_time:
          type: string
          format: date-time
          readOnly: true
        default_bi_period_days:
          type: integer
          readOnly: true
          nullable: true
        modified_time:
          type: string
          format: date-time
          readOnly: true
          nullable: true
        name:
          type: string
          readOnly: true
          nullable: true
        per_zone_terms:
          type: array
          items:
            $ref: '#/components/schemas/PolicyTermsZone'
        peril_sections:
          type: array
          items:
            $ref: '#/components/schemas/CoverageOptionBulkPerilSectionResponse'
        uuid:
          type: string
          format: uuid
          readOnly: true
          nullable: true
          description: UUID of the policy terms coverage option
        zone_set_name:
          type: string
          readOnly: true
        extra_data:
          nullable: true
          description: Extra data in JSON format.
        zone_set:
          type: string
          format: uuid
          nullable: true
          description: UUID of the zone set associated with this coverage option.
      required:
        - annual_aggregate_deductible
        - annual_aggregate_per_occ_deductible
        - annual_aggregate_per_occ_max
        - annual_aggregate_trailing_deductible
        - bi_limit_type
        - created_time
        - default_bi_period_days
        - modified_time
        - name
        - per_zone_terms
        - peril_sections
        - uuid
        - zone_set_name
    CoverageOptionBulkZoneTerm:
      type: object
      description: >-
        One zone's complete terms inside a bulk coverage option PUT.


        The split `pd_*`/`bi_*` fields only exist when
        `settings.ENABLE_ZONE_PD_BI_SPLIT` is on,

        exactly as on the single zone endpoint.
      properties:
        uuid:
          type: string
          format: uuid
          description: UUID of the zone.
        bi_days_deductible:
          type: integer
          maximum: 2147483647
          minimum: 0
          nullable: true
        included:
          type: boolean
        max_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        min_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        per_location_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        per_location_deductible_format:
          enum:
            - P
            - C
            - ''
            - null
          type: string
          x-spec-enum-id: 1453737de42163e5
          nullable: true
          description: |-
            Percent or dollar?

            * `P` - Percentage
            * `C` - Currency
        per_location_deductible_type:
          enum:
            - S
            - C
            - CT
            - CB
            - PL
            - ''
            - null
          type: string
          description: |-
            * `S` - Sitedeductible
            * `C` - Perunitcoverage
            * `CT` - Combinedwithtimeelement
            * `CB` - Applytopropertydamage
            * `PL` - Percentofloss
          x-spec-enum-id: c999e4d4dffff517
          nullable: true
        peril_group:
          type: string
          nullable: true
          description: Label of the peril group this zone belongs to.
        sublimit:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
      required:
        - uuid
    CoverageOptionBulkPerilTerm:
      type: object
      description: >-
        One peril group's complete terms inside a bulk coverage option PUT.


        `display_name` is required rather than resettable: it has no meaningful
        default, so leaving it

        out of a PUT would blank the group's name. `is_bi_split_allowed` is
        read-only everywhere and so

        is not settable. Which `pd_*` deductible fields exist depends on

        `settings.ENABLE_PD_BUILDING_CONTENTS_SPLIT`, exactly as on the single
        peril group endpoint.
      properties:
        display_name:
          type: string
          nullable: true
          description: >-
            Display name for the peril group, e.g., Earthquake, Earthquake 2,
            Hurricane, etc.
          maxLength: 50
        subperils:
          type: array
          items:
            $ref: '#/components/schemas/CoverageOptionBulkSubperil'
          description: Every subperil of this group. Required; send `[]` if it has none.
        bi_days_deductible:
          type: integer
          maximum: 2147483647
          minimum: 0
          nullable: true
        bi_location_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        bi_location_deductible_format:
          enum:
            - P
            - C
            - ''
            - null
          type: string
          x-spec-enum-id: 1453737de42163e5
          nullable: true
          description: |-
            Percent or dollar?

            * `P` - Percentage
            * `C` - Currency
        bi_max_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        bi_min_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        bi_sublimit:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        included:
          type: boolean
        is_deductible_combined:
          type: boolean
          nullable: true
        is_sublimit_combined:
          type: boolean
          nullable: true
        location_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        location_deductible_format:
          enum:
            - P
            - C
            - ''
            - null
          type: string
          x-spec-enum-id: 1453737de42163e5
          nullable: true
          description: |-
            Percent or dollar?

            * `P` - Percentage
            * `C` - Currency
        location_deductible_type:
          enum:
            - S
            - C
            - CT
            - CB
            - PL
            - ''
            - null
          type: string
          description: |-
            * `S` - Sitedeductible
            * `C` - Perunitcoverage
            * `CT` - Combinedwithtimeelement
            * `CB` - Applytopropertydamage
            * `PL` - Percentofloss
          x-spec-enum-id: c999e4d4dffff517
          nullable: true
        max_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        min_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        pd_location_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        pd_location_deductible_format:
          enum:
            - P
            - C
            - ''
            - null
          type: string
          x-spec-enum-id: 1453737de42163e5
          nullable: true
          description: |-
            Percent or dollar?

            * `P` - Percentage
            * `C` - Currency
        pd_max_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        pd_min_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        pd_sublimit:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        self_insured_retentions:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        sublimit:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          nullable: true
        uuid:
          type: string
          format: uuid
          description: UUID of the peril group.
      required:
        - display_name
        - subperils
    PolicyTermsZone:
      type: object
      description: >-
        Drops the agg limit/deductible fields when
        settings.ENABLE_AGG_LIMITS_AND_DEDUCTIBLES is off.


        Writes are partial, so a body that still sends them leaves the stored
        values untouched.
      properties:
        bi_days_deductible:
          type: integer
          readOnly: true
          nullable: true
        deductible_type:
          type: string
          readOnly: true
          nullable: true
        included:
          type: boolean
          readOnly: true
        location_count:
          type: integer
          readOnly: true
          nullable: true
          description: >-
            Number of locations that fall under this zone. Should be calculated
            on change.
        max_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        min_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        per_location_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        per_location_deductible_format:
          enum:
            - P
            - C
            - null
          type: string
          x-spec-enum-id: 1453737de42163e5
          readOnly: true
          nullable: true
          description: |-
            Percent or dollar?

            * `P` - Percentage
            * `C` - Currency
        per_location_deductible_type:
          enum:
            - S
            - C
            - CT
            - CB
            - PL
            - null
          type: string
          description: |-
            * `S` - Sitedeductible
            * `C` - Perunitcoverage
            * `CT` - Combinedwithtimeelement
            * `CB` - Applytopropertydamage
            * `PL` - Percentofloss
          x-spec-enum-id: c999e4d4dffff517
          readOnly: true
          nullable: true
        peril_class:
          enum:
            - HU
            - EQ
            - IF
            - SCS
            - AOP
            - WF
            - TE
            - NC
          type: string
          description: |-
            * `HU` - Hu
            * `EQ` - Eq
            * `IF` - Flood
            * `SCS` - Severeconvectivestorm
            * `AOP` - Aop
            * `WF` - Wildfire
            * `TE` - Terrorism
            * `NC` - Noncat
          x-spec-enum-id: b72e536a6e65a035
          readOnly: true
        peril_group_uuid:
          type: string
          readOnly: true
        sublimit:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        tiv:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
          description: Total Insured Value for this zone.
        uuid:
          type: string
          format: uuid
          readOnly: true
          nullable: true
          description: UUID of the zone
        zone:
          enum:
            - TriCounty
            - Tier1
            - Tier1 TX-VA
            - Tier1 TX-NC
            - Tier1 MD-ME
            - Tier1 VA-ME
            - Tier2
            - AK
            - CA
            - CO
            - FL
            - HI
            - OK
            - NewMadrid
            - PacNW
            - PR
            - TX
            - Inland TX
            - SFHA
            - MFHA
            - High Hazard
            - AllOther
            - Unknown
            - Custom1
            - Custom2
            - Custom3
            - Custom4
            - null
          type: string
          description: |-
            * `TriCounty` - Tricounty
            * `Tier1` - Tier1
            * `Tier1 TX-VA` - Tier1Txtova
            * `Tier1 TX-NC` - Tier1Txtonc
            * `Tier1 MD-ME` - Tier1Mdtome
            * `Tier1 VA-ME` - Tier1Vatome
            * `Tier2` - Tier2
            * `AK` - Ak
            * `CA` - Ca
            * `CO` - Co
            * `FL` - Fl
            * `HI` - Hi
            * `OK` - Ok
            * `NewMadrid` - Newmadrid
            * `PacNW` - Pacnw
            * `PR` - Pr
            * `TX` - Tx
            * `Inland TX` - Inlandtexas
            * `SFHA` - Sfha
            * `MFHA` - Mfha
            * `High Hazard` - Highhazard
            * `AllOther` - Allother
            * `Unknown` - Unknown
            * `Custom1` - Custom1
            * `Custom2` - Custom2
            * `Custom3` - Custom3
            * `Custom4` - Custom4
          x-spec-enum-id: 796960033c99fd8c
          readOnly: true
          nullable: true
      required:
        - bi_days_deductible
        - deductible_type
        - included
        - location_count
        - max_deductible
        - min_deductible
        - per_location_deductible
        - per_location_deductible_format
        - per_location_deductible_type
        - peril_class
        - peril_group_uuid
        - sublimit
        - tiv
        - uuid
        - zone
    CoverageOptionBulkPerilSectionResponse:
      type: object
      properties:
        name:
          type: string
          readOnly: true
        peril_groups:
          type: array
          items:
            $ref: '#/components/schemas/CoverageOptionBulkPerilGroupResponse'
        uuid:
          type: string
          format: uuid
          readOnly: true
          nullable: true
          description: UUID of the peril section
      required:
        - name
        - peril_groups
        - uuid
    CoverageOptionBulkSubperil:
      type: object
      description: >-
        A term entry in a bulk payload declares every field optional except its
        identifiers.


        Which of the mutually-exclusive `pd_*`/`bi_*` vs combined fields are
        valid depends on the

        entry's own toggles, so requiredness can't be declared statically -- the
        PUT handler expands

        each entry to the applicable field set and resets whatever the body left
        out. A nested

        serializer also can't opt into `partial` on its own (DRF resolves it
        from ``self.root``), and

        marking the whole payload partial would make the identifying `uuid`s
        optional too.
      properties:
        uuid:
          type: string
          format: uuid
          description: >-
            UUID of the subperil. Must belong to this coverage option. Listing
            it under a peril group other than its current one moves it there.
        included:
          type: boolean
      required:
        - uuid
    CoverageOptionBulkPerilGroupResponse:
      type: object
      description: >-
        Identical to the detail peril group, but with the trimmed subperils
        above.
      properties:
        bi_days_deductible:
          type: integer
          readOnly: true
          nullable: true
        bi_location_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        bi_location_deductible_format:
          enum:
            - P
            - C
            - null
          type: string
          x-spec-enum-id: 1453737de42163e5
          readOnly: true
          nullable: true
          description: |-
            Percent or dollar?

            * `P` - Percentage
            * `C` - Currency
        bi_max_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        bi_min_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        bi_sublimit:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        display_name:
          type: string
          readOnly: true
          nullable: true
          description: >-
            Display name for the peril group, e.g., Earthquake, Earthquake 2,
            Hurricane, etc.
        group_label:
          type: string
          readOnly: true
          description: Peril group label, e.g., EQ, EQ2, HU, IF, etc.
        included:
          type: boolean
          readOnly: true
        is_bi_split_allowed:
          type: boolean
          readOnly: true
          nullable: true
        is_deductible_combined:
          type: boolean
          readOnly: true
          nullable: true
        is_sublimit_combined:
          type: boolean
          readOnly: true
          nullable: true
        is_user_created:
          type: boolean
          readOnly: true
          nullable: true
          description: If user created this, set to True.
        location_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        location_deductible_format:
          enum:
            - P
            - C
            - null
          type: string
          x-spec-enum-id: 1453737de42163e5
          readOnly: true
          nullable: true
          description: |-
            Percent or dollar?

            * `P` - Percentage
            * `C` - Currency
        location_deductible_type:
          enum:
            - S
            - C
            - CT
            - CB
            - PL
            - null
          type: string
          description: |-
            * `S` - Sitedeductible
            * `C` - Perunitcoverage
            * `CT` - Combinedwithtimeelement
            * `CB` - Applytopropertydamage
            * `PL` - Percentofloss
          x-spec-enum-id: c999e4d4dffff517
          readOnly: true
          nullable: true
        max_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        min_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        pd_location_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        pd_location_deductible_format:
          enum:
            - P
            - C
            - null
          type: string
          x-spec-enum-id: 1453737de42163e5
          readOnly: true
          nullable: true
          description: |-
            Percent or dollar?

            * `P` - Percentage
            * `C` - Currency
        pd_max_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        pd_min_deductible:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        pd_sublimit:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        section_name:
          type: string
        section_uuid:
          type: string
          format: uuid
        self_insured_retentions:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        sublimit:
          type: string
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,2})?$
          readOnly: true
          nullable: true
        subperils:
          type: array
          items:
            $ref: '#/components/schemas/CoverageOptionBulkSubperilResponse'
        uuid:
          type: string
          format: uuid
          readOnly: true
          nullable: true
          description: UUID of the peril group
      required:
        - bi_days_deductible
        - bi_location_deductible
        - bi_location_deductible_format
        - bi_max_deductible
        - bi_min_deductible
        - bi_sublimit
        - display_name
        - group_label
        - included
        - is_bi_split_allowed
        - is_deductible_combined
        - is_sublimit_combined
        - is_user_created
        - location_deductible
        - location_deductible_format
        - location_deductible_type
        - max_deductible
        - min_deductible
        - pd_location_deductible
        - pd_location_deductible_format
        - pd_max_deductible
        - pd_min_deductible
        - pd_sublimit
        - section_name
        - section_uuid
        - self_insured_retentions
        - sublimit
        - subperils
        - uuid
    CoverageOptionBulkSubperilResponse:
      type: object
      description: Subperil response for the bulk update, without `allowed_peril_groups`.
      properties:
        included:
          type: boolean
          readOnly: true
        name:
          type: string
          readOnly: true
        peril_group_uuid:
          type: string
          format: uuid
        peril_type:
          enum:
            - HU_Wind
            - HU_Surge
            - HU_PrecipitationFlood
            - EQ_Shake
            - EQ_Fire
            - EQ_Sprinkler
            - EQ_Landslide
            - EQ_Tsunami
            - EQ_Liquefaction
            - InlandFlood
            - Wildfire
            - Smoke
            - WinterStorm
            - SevereConvectiveStorm
            - Hail
            - StraightLineWind
            - Tornado
            - SevereStorm
            - Terrorism
            - NonCat
          type: string
          description: |-
            * `HU_Wind` - Hu_Wind
            * `HU_Surge` - Hu_Surge
            * `HU_PrecipitationFlood` - Hu_Precipitationflood
            * `EQ_Shake` - Eq_Shake
            * `EQ_Fire` - Eq_Fire
            * `EQ_Sprinkler` - Eq_Sprinkler
            * `EQ_Landslide` - Eq_Landslide
            * `EQ_Tsunami` - Eq_Tsunami
            * `EQ_Liquefaction` - Eq_Liquefaction
            * `InlandFlood` - Inlandflood
            * `Wildfire` - Wildfire
            * `Smoke` - Wf_Smoke
            * `WinterStorm` - Winterstorm
            * `SevereConvectiveStorm` - Severeconvectivestorm
            * `Hail` - Hail
            * `StraightLineWind` - Straightlinewind
            * `Tornado` - Tornado
            * `SevereStorm` - Severestorm
            * `Terrorism` - Terrorism
            * `NonCat` - Noncat
          x-spec-enum-id: 0ee0d83a25944b26
          readOnly: true
        uuid:
          type: string
          format: uuid
          readOnly: true
          nullable: true
          description: UUID of the subperil
      required:
        - included
        - name
        - peril_group_uuid
        - peril_type
        - uuid
  securitySchemes:
    authorization_header:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        Supports `Token `-prefixed API keys and `Bearer `-prefixed JWT-based
        authentication.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.