Skip to main content
POST
/
api
/
agents
/
{id}
/
resolution-criteria
Add a resolution criterion to an agent
curl --request POST \
  --url http://localhost:3000/api/agents/{id}/resolution-criteria \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "Customer confirms payment date",
  "description": "The customer explicitly states or confirms a specific date for payment during the conversation."
}
'
{
  "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

Body

application/json
label
string
required

Short label for the resolution criterion

Maximum string length: 255
Example:

"Customer confirms payment date"

description
string
required

Detailed description of what constitutes meeting this criterion

Example:

"The customer explicitly states or confirms a specific date for payment during the conversation."

Response

Resolution criterion created

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