FruxonDocs
ApiHumantask

Answers a question and resumes the run that asked it.

The answer travels the same path a channel reply takes: the run resumes at the call that asked, with this text as the answer. The first answer is the only one — a reply the contact sends afterwards no longer matches the question. Returns 409 when a reply, a cancellation or the deadline settled the question first.

POST
/v1/tenants/{tenant}/agentQuestions/{agentQuestion}:answer
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

agentQuestion*string

The question identifier.

Formatuuid
tenant*string

The tenant identifier

The answer.

answer*string

The answer, in the operator's own words. It becomes the answer the parked run resumes with, exactly as a channel reply would. Required — the first answer is the only one, so an empty one would wake the run with nothing.

Length1 <= length <= 4000
[key: string]?never

Response Body

curl -X POST "https://api.fruxon.com/v1/tenants/string/agentQuestions/497f6eca-6276-4993-bfeb-53cbbbba6f08:answer" \  -H "Content-Type: application/json" \  -d '{    "answer": "string"  }'
{
  "id": "00000000-0000-0000-0000-000000000000",
  "agentId": "string",
  "networkId": "00000000-0000-0000-0000-000000000000",
  "slotName": "string",
  "question": "string",
  "delivery": "DELIVERED",
  "deliveryDetail": "string",
  "status": "PENDING",
  "expiresAt": 0,
  "createdAt": 0,
  "executionRecordId": "00000000-0000-0000-0000-000000000000",
  "sessionId": "string",
  "topicId": "00000000-0000-0000-0000-000000000000",
  "participantId": "00000000-0000-0000-0000-000000000000",
  "stepIdentifier": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}