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

# Dismiss proposals of an underwriting submission’s extraction

> Sets aside values an extraction proposed, or read for the profile's facts, with an optional `note` on why. Nothing is kept for the submission. Each proposal reads `ruled` with `ruling` `dismissed` from then on, and a later extraction that reads the same value at the same path, or the same fact's row and field, does not offer it again; another value there is new and is proposed as usual. An input the program needs is `missing` again once its only proposal is dismissed.

Name the proposals in `paths` by input path and the facts' values in `facts` as `{fact, row?, field?}` (at most 500 together); a row named without `field` dismisses each of its fields. Where several values were read, each one not yet ruled on is dismissed. Answers `dismissed`, the paths now dismissed; `skipped`, each path left as it was and why; `facts`, the same for the facts' values; and `outstanding`, what the submission still waits on. 422 `unknown_proposal` for a path or fact the extraction read nothing for, which refuses the whole request.

Idempotency-Key is required. The same key and request answer what the first one did for 24 hours, with `outstanding` as it stands now; the same key with a different request is 409 `idempotency_conflict`. A request refused before it writes the submission’s log changes and binds nothing. A ruling made at its paths after it read them refuses it with 409 `conflict` after its log write: the value the log took stays, and a retry finds it held.

Whoever rules writes to the submission’s log as one of the program’s roles: the caller needs a role of the program, or is a workspace admin. Needs edit access to the submission (403 for a reader, 404 when it cannot be read). An extraction with no result is 409 `extraction_not_finished`. Only where the workspace has underwriting turned on (403 `feature_not_enabled`).

Alpha: this operation may change or be removed without notice.



## OpenAPI

````yaml /openapi.json post /insurance/underwriting/submissions/{submissionId}/extractions/{extractionId}/dismiss
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.canary.effectiveai.app/api/v2
    description: Canary
security:
  - bearerAuth: []
paths:
  /insurance/underwriting/submissions/{submissionId}/extractions/{extractionId}/dismiss:
    post:
      tags:
        - Underwriting submissions
      summary: Dismiss proposals of an underwriting submission’s extraction
      description: >-
        Sets aside values an extraction proposed, or read for the profile's
        facts, with an optional `note` on why. Nothing is kept for the
        submission. Each proposal reads `ruled` with `ruling` `dismissed` from
        then on, and a later extraction that reads the same value at the same
        path, or the same fact's row and field, does not offer it again; another
        value there is new and is proposed as usual. An input the program needs
        is `missing` again once its only proposal is dismissed.


        Name the proposals in `paths` by input path and the facts' values in
        `facts` as `{fact, row?, field?}` (at most 500 together); a row named
        without `field` dismisses each of its fields. Where several values were
        read, each one not yet ruled on is dismissed. Answers `dismissed`, the
        paths now dismissed; `skipped`, each path left as it was and why;
        `facts`, the same for the facts' values; and `outstanding`, what the
        submission still waits on. 422 `unknown_proposal` for a path or fact the
        extraction read nothing for, which refuses the whole request.


        Idempotency-Key is required. The same key and request answer what the
        first one did for 24 hours, with `outstanding` as it stands now; the
        same key with a different request is 409 `idempotency_conflict`. A
        request refused before it writes the submission’s log changes and binds
        nothing. A ruling made at its paths after it read them refuses it with
        409 `conflict` after its log write: the value the log took stays, and a
        retry finds it held.


        Whoever rules writes to the submission’s log as one of the program’s
        roles: the caller needs a role of the program, or is a workspace admin.
        Needs edit access to the submission (403 for a reader, 404 when it
        cannot be read). An extraction with no result is 409
        `extraction_not_finished`. Only where the workspace has underwriting
        turned on (403 `feature_not_enabled`).


        Alpha: this operation may change or be removed without notice.
      operationId: dismissUnderwritingSubmissionProposals
      parameters:
        - schema:
            type: string
            format: uuid
            description: The submission’s id.
          required: true
          description: The submission’s id.
          name: submissionId
          in: path
        - schema:
            type: string
            format: uuid
            description: The extraction’s id.
          required: true
          description: The extraction’s id.
          name: extractionId
          in: path
        - schema:
            type: string
            minLength: 1
            maxLength: 128
            pattern: ^[A-Za-z0-9\-_.:]+$
            description: >-
              Client-chosen key for safe retries: 1-128 letters, digits, -, _, .
              or :. Use a new random UUID for each intended operation and the
              same key when retrying it. Do not put customer data or credentials
              in the key.
          required: true
          description: >-
            Client-chosen key for safe retries: 1-128 letters, digits, -, _, .
            or :. Use a new random UUID for each intended operation and the same
            key when retrying it. Do not put customer data or credentials in the
            key.
          name: Idempotency-Key
          in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/V2DismissUnderwritingSubmissionProposalsRequest
      responses:
        '200':
          description: >-
            What was dismissed and skipped, and what the submission still waits
            on.
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/V2DismissedUnderwritingSubmissionProposals
        '400':
          description: 'invalid_request: an unknown or invalid field, or submission id.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '401':
          description: Authentication required.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '403':
          description: >-
            feature_not_enabled: underwriting is not enabled for the workspace.
            forbidden: the caller can read the submission and not edit it.
            no_program_role: the caller holds no role of the submission’s
            program.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '404':
          description: >-
            not_found: no such submission or extraction, or the caller cannot
            read the submission.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '409':
          description: >-
            extraction_not_finished: the extraction has no result.
            idempotency_conflict: the key was used with a different request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2UnderwritingSubmissionRulingConflict'
        '413':
          description: 'request_too_large: the body is over 256 KiB.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '415':
          description: 'unsupported_media_type: use application/json.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
        '422':
          description: unknown_proposal.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2CodedError'
      security:
        - bearerAuth: []
components:
  schemas:
    V2DismissUnderwritingSubmissionProposalsRequest:
      type: object
      properties:
        paths:
          type: array
          items:
            type: string
            minLength: 1
            maxLength: 500
            description: 'A proposal of this extraction, by its input path: `state`.'
          minItems: 1
          maxItems: 500
          description: Each proposal to dismiss, by its input path.
        facts:
          type: array
          items:
            type: object
            properties:
              fact:
                type: string
                maxLength: 100
                pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                description: 'The program’s note, by its path: loss_year_figures.'
              row:
                type: string
                minLength: 1
                maxLength: 200
                pattern: ^[^\x00-\x1f\x7f]+$
                description: 'For a note kept as a list: the row’s id.'
              field:
                type: string
                maxLength: 64
                pattern: ^[a-z][a-z0-9_]*$
                description: 'For a fact given as a record: the field.'
            required:
              - fact
            additionalProperties: false
            description: >-
              A fact’s value the extraction read, by fact, row and field. A row
              without `field` names each of its fields.
          minItems: 1
          maxItems: 500
          description: >-
            Each fact’s value to dismiss, by fact, row and field. A row without
            `field` dismisses each of its fields.
        note:
          type: string
          minLength: 1
          maxLength: 2000
          description: Why, in the underwriter’s words.
      additionalProperties: false
    V2DismissedUnderwritingSubmissionProposals:
      type: object
      properties:
        dismissed:
          type: array
          items:
            type: string
            minLength: 1
          description: >-
            The paths whose proposed values are dismissed: a later extraction
            does not offer them again.
        skipped:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
                minLength: 1
              reason:
                type: string
                minLength: 1
            required:
              - path
              - reason
          description: >-
            Each path not dismissed and why. `reason` is extensible: `accepted`
            or `overridden` (already ruled on), `underwriter_value` (the
            submission holds that value), `invalid`.
        facts:
          type: object
          properties:
            dismissed:
              type: array
              items:
                type: object
                properties:
                  fact:
                    type: string
                    maxLength: 100
                    pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                    description: 'The program’s note, by its path: loss_year_figures.'
                  row:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[^\x00-\x1f\x7f]+$
                    description: 'For a note kept as a list: the row’s id.'
                  field:
                    type: string
                    maxLength: 64
                    pattern: ^[a-z][a-z0-9_]*$
                    description: 'For a fact given as a record: the field.'
                required:
                  - fact
                additionalProperties: false
              description: Each fact’s value now dismissed.
            skipped:
              type: array
              items:
                type: object
                properties:
                  fact:
                    type: string
                    maxLength: 100
                    pattern: ^[a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)*$
                    description: 'The program’s note, by its path: loss_year_figures.'
                  row:
                    type: string
                    minLength: 1
                    maxLength: 200
                    pattern: ^[^\x00-\x1f\x7f]+$
                    description: 'For a note kept as a list: the row’s id.'
                  field:
                    type: string
                    maxLength: 64
                    pattern: ^[a-z][a-z0-9_]*$
                    description: 'For a fact given as a record: the field.'
                  reason:
                    type: string
                    minLength: 1
                required:
                  - fact
                  - reason
                additionalProperties: false
              description: >-
                Each fact’s value not dismissed and why, with the reasons of
                `skipped`.
          required:
            - dismissed
            - skipped
          description: The same for the facts named.
        outstanding:
          type: array
          items:
            type: object
            properties:
              key:
                type: string
                minLength: 1
                maxLength: 600
                description: >-
                  Stable across runs: `conflict:<path>`,
                  `conflict:fact:<key>[<row>]#<field>`, `input:<path>`,
                  `document:<key>`, `unread:<name>`, `fact:<key>`,
                  `fact:<key>#<field>`.
              label:
                type: string
                minLength: 1
                maxLength: 600
                description: What is outstanding, in words.
              kind:
                type: string
                enum:
                  - conflict
                  - document
                  - input
                  - fact
              awaiting:
                type: string
                enum:
                  - broker
                  - underwriter
                  - system
              neededFor:
                type: string
                minLength: 1
                maxLength: 200
                description: What it is needed for, in words.
              severity:
                type: string
                enum:
                  - blocking
                  - advisory
              note:
                type: string
                minLength: 1
                maxLength: 2000
                description: >-
                  The run’s words on it, where it gave some; for an answer that
                  lapsed, what it was and from which file.
            required:
              - key
              - label
              - kind
              - awaiting
              - severity
            additionalProperties: false
          description: >-
            What the submission still waits on after this call, as a read of it
            answers.
      required:
        - dismissed
        - skipped
        - facts
        - outstanding
    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
    V2UnderwritingSubmissionRulingConflict:
      type: object
      properties:
        code:
          type: string
          minLength: 1
          description: >-
            `extraction_not_finished`, `idempotency_conflict`, `conflict` or
            `document_changed`.
        error:
          type: string
          minLength: 1
        extractionId:
          type: string
          format: uuid
          description: The extraction with no result, for `extraction_not_finished`.
        requestId:
          type: string
          minLength: 1
          maxLength: 128
      required:
        - code
        - error
    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.