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

# Map classes to another classification system

> A classification system is a published list of classes that rating and underwriting key on: ISO’s commercial general liability classes (`iso-gl`), NCCI’s workers’ compensation classes, ISO’s commercial auto vehicle classes, NAICS, or a carrier’s own. Each class has a code, a description and, where the system has one, a premium base: what the exposure counts and per how many it is rated. An overlay is what another party puts on a system’s classes, such as a carrier’s umbrella and excess hazard groups on `iso-gl`. A workspace reads its own systems and the shared ones its dataset grants cover (`iso` for ISO’s classes); where it has its own copy of a shared system, its own copy wins. This is reference data for preparing a submission: raters do not read it, and each keeps its own class tables.

For the given codes in this system, the classes they correspond to in other systems, such as the `iso-gl` classes for a NAICS code; `to` keeps one target system. A code can map to several classes, and a code with no mapping is left out. Where the workspace has its own mapping to a system, it replaces the shared one. Reading needs rater view access; read-only keys work.



## OpenAPI

````yaml /openapi.json get /insurance/classifications/{system}/mappings
openapi: 3.0.3
info:
  title: Effective API
  version: 2.0.0
  description: The public Effective REST API. Authenticate using an Effective API key.
servers:
  - url: https://api.effectiveai.app/api/v2
    description: Production
security:
  - bearerAuth: []
paths:
  /insurance/classifications/{system}/mappings:
    get:
      tags:
        - Classifications
      summary: Map classes to another classification system
      description: >-
        A classification system is a published list of classes that rating and
        underwriting key on: ISO’s commercial general liability classes
        (`iso-gl`), NCCI’s workers’ compensation classes, ISO’s commercial auto
        vehicle classes, NAICS, or a carrier’s own. Each class has a code, a
        description and, where the system has one, a premium base: what the
        exposure counts and per how many it is rated. An overlay is what another
        party puts on a system’s classes, such as a carrier’s umbrella and
        excess hazard groups on `iso-gl`. A workspace reads its own systems and
        the shared ones its dataset grants cover (`iso` for ISO’s classes);
        where it has its own copy of a shared system, its own copy wins. This is
        reference data for preparing a submission: raters do not read it, and
        each keeps its own class tables.


        For the given codes in this system, the classes they correspond to in
        other systems, such as the `iso-gl` classes for a NAICS code; `to` keeps
        one target system. A code can map to several classes, and a code with no
        mapping is left out. Where the workspace has its own mapping to a
        system, it replaces the shared one. Reading needs rater view access;
        read-only keys work.
      operationId: listClassificationMappings
      parameters:
        - schema:
            type: string
            pattern: ^[a-z][a-z0-9-]{0,63}$
            description: A classification system’s key, such as iso-gl, ncci-wc or naics.
          required: true
          description: A classification system’s key, such as iso-gl, ncci-wc or naics.
          name: system
          in: path
        - schema:
            type: string
            description: >-
              Comma-separated codes in this system, at most 100, to find the
              classes they correspond to.
          required: true
          description: >-
            Comma-separated codes in this system, at most 100, to find the
            classes they correspond to.
          name: codes
          in: query
        - schema:
            type: string
            pattern: ^[a-z][a-z0-9-]{0,63}$
            description: Only mappings to this system.
          required: false
          description: Only mappings to this system.
          name: to
          in: query
      responses:
        '200':
          description: The mappings, sorted by code, then target system and code.
          content:
            application/json:
              schema:
                type: object
                properties:
                  mappings:
                    type: array
                    items:
                      $ref: '#/components/schemas/V2ClassificationMapping'
                required:
                  - mappings
        '400':
          description: >-
            Invalid query, or an overlay the system does not have; restart a
            list after an invalid cursor.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '403':
          description: The credential may not read classifications.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
      security:
        - bearerAuth: []
components:
  schemas:
    V2ClassificationMapping:
      type: object
      properties:
        fromCode:
          type: string
          pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,19}$
          description: >-
            A class code as its system writes it: 91342 for ISO GL, 8810 for
            NCCI, 238130 for NAICS. Letters, digits, dots and hyphens, up to 20.
        toSystem:
          type: string
          pattern: ^[a-z][a-z0-9-]{0,63}$
          description: A classification system’s key, such as iso-gl, ncci-wc or naics.
        toCode:
          type: string
          pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,19}$
          description: >-
            A class code as its system writes it: 91342 for ISO GL, 8810 for
            NCCI, 238130 for NAICS. Letters, digits, dots and hyphens, up to 20.
        source:
          $ref: '#/components/schemas/V2ClassificationMappingSource'
      required:
        - fromCode
        - toSystem
        - toCode
        - source
    V2CodedError:
      allOf:
        - $ref: '#/components/schemas/V2Error'
        - type: object
          properties:
            code:
              type: string
              minLength: 1
              description: Stable error code. Clients must tolerate unknown future codes.
            details:
              type: array
              items:
                type: object
                properties:
                  location:
                    type: string
                    enum:
                      - path
                      - query
                      - header
                      - body
                  path:
                    type: array
                    items:
                      type: string
                      maxLength: 64
                    maxItems: 12
                  code:
                    type: string
                    enum:
                      - required
                      - invalid_type
                      - invalid_value
                      - unknown_field
                  message:
                    type: string
                    minLength: 1
                    maxLength: 200
                required:
                  - location
                  - path
                  - code
                  - message
              minItems: 1
              maxItems: 20
              description: Bounded safe validation issues; may omit some invalid fields.
            requestId:
              type: string
              minLength: 1
              maxLength: 128
              description: >-
                Existing server correlation for this HTTP attempt, when
                available.
            dataset:
              type: string
              enum:
                - naic
                - osha
              description: Dataset needed for dataset_not_enabled.
            businessCode:
              type: string
              description: The rater’s own refusal code, for business_rejection.
            violations:
              type: array
              items:
                type: object
                properties:
                  code:
                    type: string
                    description: Authored or built-in constraint code
                  message:
                    type: string
                    description: Authored message for the failed constraint
                  path:
                    type: string
                    description: Input path of the offending value; empty for the request
                  value:
                    nullable: true
                    description: Offending input value, size-bounded by the runtime
                  constraint:
                    type: string
                    description: The constraint the value failed, as text
                  cite:
                    type: string
                    nullable: true
                    description: >-
                      Filing citation of the constraint, when the source cites
                      one
                required:
                  - code
                  - message
                  - path
                  - value
                  - constraint
                  - cite
                additionalProperties: false
              maxItems: 256
              description: >-
                Each input constraint the submission failed, for invalid_inputs
                and business_rejection.
            violationsTruncated:
              type: boolean
              description: >-
                True when the rater reported more violations than violations
                holds.
            executionId:
              type: string
              description: >-
                The recorded execution of a failed rating, for rater rating
                failures.
            accessUrl:
              type: string
              nullable: true
              format: uri
              description: Not currently returned.
          required:
            - code
    V2ClassificationMappingSource:
      type: object
      properties:
        publication:
          type: string
          description: The publication the mapping comes from.
        edition:
          type: string
          description: Its edition.
      required:
        - publication
        - edition
    V2Error:
      type: object
      properties:
        error:
          type: string
          minLength: 1
          description: Human-readable explanation of the failure.
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Effective API key. Send Authorization: Bearer sk-eai-...'

````

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