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

# Resolve several validation issues at once

> Apply a reviewer's answers to several findings in one request.

Every choice is validated before any is written, so an invalid option in
the batch rejects the whole request rather than half-applying it. The
response reports whether the file is now ready to retry.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json patch /raw_data/{raw_data_id}/issues
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /raw_data/{raw_data_id}/issues:
    patch:
      tags:
        - Raw Data
      summary: Resolve several validation issues at once
      description: |-
        Apply a reviewer's answers to several findings in one request.

        Every choice is validated before any is written, so an invalid option in
        the batch rejects the whole request rather than half-applying it. The
        response reports whether the file is now ready to retry.
      operationId: resolve_raw_data_issues_raw_data__raw_data_id__issues_patch
      parameters:
        - name: raw_data_id
          in: path
          required: true
          schema:
            type: string
            title: Raw Data Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ResolveIssuesRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolveIssuesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ResolveIssuesRequest:
      properties:
        resolutions:
          additionalProperties:
            type: string
            enum:
              - accept
              - reject
              - change_cell
          type: object
          minProperties: 1
          title: Resolutions
          description: Chosen option id, keyed by issue id.
      type: object
      required:
        - resolutions
      title: ResolveIssuesRequest
      description: >-
        Body for resolving several findings on one file in a single call.


        A reviewer usually faces several findings at once, and resolving them
        one

        request at a time makes the UI's "save my answers" button non-atomic.
    ResolveIssuesResponse:
      properties:
        resolved:
          type: integer
          title: Resolved
          description: Findings updated.
        issues:
          items:
            $ref: '#/components/schemas/RawDataIssue'
          type: array
          title: Issues
          description: Every finding on the file, post-update.
        ready_to_retry:
          type: boolean
          title: Ready To Retry
          description: >-
            True when no finding still blocks ingestion, so the file can be
            retried immediately.
      type: object
      required:
        - resolved
        - ready_to_retry
      title: ResolveIssuesResponse
      description: Result of a bulk resolve.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RawDataIssue:
      properties:
        id:
          anyOf:
            - type: string
            - type: 'null'
          title: Id
          description: Row id once persisted; None for freshly parsed issues.
        code:
          type: string
          title: Code
          description: >-
            Stable machine-readable code — an ionworks IssueCode value or an
            engine-specific code. Branch on this, never on title/detail.
        severity:
          type: string
          enum:
            - auto_fixed
            - warning
            - needs_input
            - blocking
          title: Severity
          description: Whether this blocks ingestion and how it is displayed.
        title:
          type: string
          title: Title
          description: Plain-English title, no error codes.
        detail:
          type: string
          title: Detail
          description: One-paragraph explanation.
          default: ''
        payload:
          additionalProperties: true
          type: object
          title: Payload
          description: 'Structured details: columns, observed values, row ranges.'
        fix_summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Fix Summary
          description: 'For auto_fixed issues: short description of what changed.'
        resolution:
          anyOf:
            - type: string
              enum:
                - accept
                - reject
                - change_cell
            - type: 'null'
          title: Resolution
          description: Reviewer decision; None while unresolved.
        resolved_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Resolved By
          description: User who resolved it.
        resolved_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Resolved At
          description: Resolution timestamp.
        options:
          items:
            $ref: '#/components/schemas/FixOption'
          type: array
          title: Options
          description: |-
            Choices available for this finding.

            Derived from ``code`` and ``severity`` rather than stored, so the
            catalogue can grow without a migration and can never drift from what
            :meth:`resolve` actually accepts.
          readOnly: true
      type: object
      required:
        - code
        - severity
        - title
        - options
      title: RawDataIssue
      description: |-
        A single validation finding for a raw-data file.

        Emitted by the parse engine (with no id/timestamps) and persisted to
        ``raw_data_issues``, where it gains identity and resolution fields.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    FixOption:
      properties:
        id:
          type: string
          enum:
            - accept
            - reject
            - change_cell
          title: Id
          description: Value to send back as the resolution.
        label:
          type: string
          title: Label
          description: Plain-English button label.
        detail:
          type: string
          title: Detail
          description: What choosing this will do.
          default: ''
        recommended:
          type: boolean
          title: Recommended
          description: Whether this is the engine's suggested choice.
          default: false
      type: object
      required:
        - id
        - label
      title: FixOption
      description: |-
        One choice a reviewer can make about a finding.

        Options are computed from the issue's ``code`` rather than stored, so a
        client renders the choices without hardcoding what each code supports.

````