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

# Assign an exception

> Assigns a single exception to a user. Mirrors the bulk-assign auth and validation but acts on exactly one exception addressed by path. Returns the updated exception.



## OpenAPI

````yaml en/openapi/v3-current/matcher.yaml post /v1/exceptions/{exceptionId}/assign
openapi: 3.1.0
info:
  title: Matcher APIs
  description: >-
    Complete API reference for the Matcher reconciliation engine, providing
    automated transaction matching between Midaz Ledger and external systems.
  version: 4.1.0
  license:
    name: Elastic License 2.0
    url: https://www.elastic.co/licensing/elastic-license
servers:
  - url: https://matcher.sandbox.lerian.net
security: []
paths:
  /v1/exceptions/{exceptionId}/assign:
    post:
      tags:
        - Exception
      summary: Assign an exception
      description: >-
        Assigns a single exception to a user. Mirrors the bulk-assign auth and
        validation but acts on exactly one exception addressed by path. Returns
        the updated exception.
      operationId: assignException
      parameters:
        - description: Exception ID (UUID)
          in: path
          name: exceptionId
          required: true
          schema:
            description: Exception ID (UUID)
            examples:
              - 550e8400-e29b-41d4-a716-446655440000
            format: uuid
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssignExceptionRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExceptionResponse'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Detail'
          description: Error
      security:
        - BearerAuth: []
components:
  schemas:
    AssignExceptionRequest:
      additionalProperties: false
      properties:
        assignee:
          description: User to assign the exception to
          examples:
            - user@example.com
          maxLength: 255
          minLength: 1
          type: string
      required:
        - assignee
      type: object
    ExceptionResponse:
      description: Exception details
      properties:
        assignedTo:
          description: User the exception is assigned to
          example: user@example.com
          type: string
        createdAt:
          description: Creation timestamp in RFC3339 format
          example: '2025-01-15T10:30:00.000Z'
          type: string
        dueAt:
          description: Due date for resolution in RFC3339 format
          example: '2025-01-20T10:30:00.000Z'
          type: string
        externalIssueId:
          description: External issue ID in the external system
          example: RECON-1234
          type: string
        externalSystem:
          description: External system where exception was dispatched
          example: JIRA
          type: string
        id:
          description: Unique identifier for the exception
          example: 019c96a0-10d2-7134-ba5f-664142ee7052
          type: string
        reason:
          description: Reason the exception was raised
          example: Amount mismatch detected
          type: string
        resolutionNotes:
          description: Resolution notes when resolved
          example: Resolved via force match
          type: string
        resolutionReason:
          description: Reason for the resolution
          example: BUSINESS_DECISION
          type: string
        resolutionType:
          description: Type of resolution applied
          enum:
            - FORCE_MATCH
            - ADJUST_ENTRY
          example: FORCE_MATCH
          type: string
        severity:
          description: Severity level
          enum:
            - LOW
            - MEDIUM
            - HIGH
            - CRITICAL
          example: HIGH
          type: string
        status:
          description: Current status
          enum:
            - OPEN
            - ASSIGNED
            - PENDING_RESOLUTION
            - RESOLVED
          example: OPEN
          type: string
        transactionId:
          description: Transaction ID this exception is for
          example: 019c96a0-10ce-75fc-a273-dc799079a99c
          type: string
        updatedAt:
          description: Last update timestamp in RFC3339 format
          example: '2025-01-15T10:30:00.000Z'
          type: string
      type: object
    Detail:
      additionalProperties: false
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          examples:
            - ERR-0001
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Bearer token authentication (format: "Bearer {token}")'

````