Skip to main content
PATCH
/
problems
Update problem
curl --request PATCH \
  --url https://app2.freyavoice.ai/api/v2/problems \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "problemId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "resolved": true,
  "status": "<string>",
  "assignedTo": "<string>",
  "resolvedBy": "<string>",
  "problem": "<string>",
  "description": "<string>",
  "type": "system",
  "severity": 0.5,
  "agentId": "<string>"
}
'
{
  "success": true,
  "data": {
    "message": "<string>",
    "result": {
      "success": true,
      "problem": {
        "problem": "<string>",
        "id": "<string>",
        "workspaceId": "<string>",
        "callId": "<string>",
        "agentId": "<string>",
        "description": "<string>",
        "type": "system",
        "severity": 0.5,
        "status": "open",
        "assignedTo": "<string>",
        "createdBy": "ai",
        "messageId": "<string>",
        "resolved": false,
        "resolvedAt": "<string>",
        "resolvedBy": "<string>",
        "solutionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "createdAt": "<string>",
        "updatedAt": "<string>",
        "callStartedAt": "<string>",
        "customerNumber": "<string>",
        "agentName": "<string>",
        "resolvedByName": "<string>",
        "assignees": [
          {
            "userId": "<string>",
            "assignedAt": "<string>",
            "userName": "<string>"
          }
        ],
        "commentsCount": 123,
        "isArchived": false
      },
      "message": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspaceId
string<uuid>
required
Minimum string length: 1
problemId
string<uuid>
required
Minimum string length: 1
resolved
boolean
status
string
assignedTo
string | null
resolvedBy
string
problem
string
Minimum string length: 1
description
string | null
type
enum<string> | null
Available options:
system,
audio,
transcription,
decision,
general,
severity
number
Required range: 0 <= x <= 1
agentId
string | null

Response

Problem updated

success
enum<boolean>
required
Available options:
true,
false
data
object
required