Skip to main content
PATCH
/
api
/
agents
/
{id}
/
resolution-criteria
/
{criterionId}
Update a resolution criterion
curl --request PATCH \
  --url http://localhost:3000/api/agents/{id}/resolution-criteria/{criterionId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "Customer confirms payment date",
  "description": "<string>"
}
'
{
  "id": "<string>",
  "agentId": "<string>",
  "label": "<string>",
  "description": "<string>",
  "position": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Agent ID

criterionId
string
required

Criterion ID

Body

application/json
label
string

Short label for the resolution criterion

Maximum string length: 255
Example:

"Customer confirms payment date"

description
string

Detailed description of what constitutes meeting this criterion

Response

Resolution criterion updated

id
string
required

Criterion ID

agentId
string
required

Agent ID

label
string
required

Label

description
string
required

Description

position
number
required

Display position

createdAt
string<date-time>
required

Created at

updatedAt
string<date-time>
required

Updated at