Pause, resume or cancel the conversation's goal
Pause and cancel stop the current round at its next safe point. Resume requires current Enterprise access and refreshes the execution credential. With extend, it raises reached limits up to the maximum. revision must match the goal the user saw.
POST
/api/agent/sessions/{sessionId}/goalPath parameters
sessionIdstringrequiredBody
actionenumrequiredOne of: pause, resume, cancel
goalIdstringrevisionintegerrequiredRequest
curl
curl -X POST https://trickest.io/api/agent/sessions/{sessionId}/goal \
-H "Authorization: Token $TRICKEST_TOKEN" \
-H "Content-Type: application/json" \
-d '{ }'Responses
200The updated goal
idstringrequiredsessionIdstringrequiredcomputerIdstringrequiredobjectivestringrequiredacceptancestring[]requiredstatusenumrequiredOne of: active, paused, blocked, completed, cancelled
revisionintegerrequiredroundsintegerrequiredusedTokensintegerrequiredcheckpointstringrequiredevidenceobject[]requiredcriterionintegerrequiredevidencestringrequiredreasonstringrequiredpendingControlenumOne of: pause, cancel
createdAtstringrequiredupdatedAtstringrequired400Bad Request – validation error or malformed input
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
401Unauthorized – missing or expired token
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
403Forbidden – insufficient permissions
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
429Too Many Requests – rate limited
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.
500Internal Server Error
codestringrequiredmessagestringrequireddetailsobjectField-level detail when the error is a validation failure.