---
title: "Review solution (deprecated)"
method: PATCH
path: "/solutions/{solutionId}"
tags: ["Solution Review"]
---

# Review solution (deprecated)

`PATCH /solutions/{solutionId}`

## Request

- Base URL: `https://app.freyavoice.ai/api/v2`
- URL: `https://app.freyavoice.ai/api/v2/solutions/{solutionId}`
- Auth: HTTP bearer

Accept or reject a single solution. Use batch review instead for better performance.

## Path parameters

- `solutionId` string, uuid, required

## Request body

- object
  - `workspaceId` string, uuid, required
  - `action` 'accept' | 'reject', required

## Response `200`

Solution reviewed

- object
  - `success` true, required
  - `data` object, required
    - `message` string, required
    - `result` object, required
      - `success` boolean, required
      - `solution` object
        - `id` string, uuid, required
        - `runId` string, uuid, required
        - `title` string, required
        - `change` object, required
          - `path` string, required
          - `operation` 'set' | 'text_diff', required
          - `oldValue` unknown
          - `newValue` unknown
          - `diff` string
        - `explanation` string, required
        - `status` 'pending' | 'accepted' | 'rejected', required
        - `reviewedAt` string, nullable
        - `displayOrder` number, required
        - `createdAt` string, required
        - `problemIds` string[]
        - `problems` object[]
          - `id` string
          - `workspaceId` string, nullable
          - `callId` string, nullable
          - `agentId` string, nullable
          - `problem` string, required
          - `description` string, nullable
          - `type` 'system' | 'audio' | 'transcription' | 'decision' | 'general' | 'null', nullable
          - `severity` number
          - `status` string
          - `assignedTo` string, nullable
          - `createdBy` string
          - `messageId` string, nullable
          - `resolved` boolean
          - `resolvedAt` string, nullable
          - `resolvedBy` string, nullable
          - `solutionId` string, uuid, nullable
          - `createdAt` string
          - `updatedAt` string
          - `callStartedAt` string, nullable
          - `customerNumber` string, nullable
          - `agentName` string, nullable
          - `resolvedByName` string, nullable
          - `assignees` object[]
            - `userId` string, required
            - `userName` string, nullable
            - `assignedAt` string, required
          - `commentsCount` number
          - `isArchived` boolean
        - `patchDecisions` object, nullable
      - `updatedConfig` unknown
      - `runCompleted` boolean, required
      - `error` string

## Other responses

- `400`: Validation error
- `401`: Missing or invalid token
- `404`: Solution not found
- `500`: Server error

---

[API](https://skmtc.dev/freyavoice/apis/freyavoice-api.md) - [All operations](https://skmtc.dev/freyavoice/apis/freyavoice-api/llms.txt) - [OpenAPI document](https://skmtc.dev/freyavoice/apis/freyavoice-api/revisions/153d120f0c73?raw)
