submitAction
abstract suspend fun submitAction(context: Ctx, taskId: String, action: TaskActionRequest): SubmitActionResponse
Submits a user action to resume a suspended task.
Return
Response indicating acceptance or rejection of the action.
Parameters
context
Context for the request.
taskId
The ID of the task.
action
Details of the action being performed.
Samples
runBlocking {
client.submitAction(
context = Unit,
taskId = taskId,
action =
TaskActionRequest(
clientActionId = "act-xyz",
suspendId = suspendEvent.suspension.suspendId,
actionType = "approve",
payload = buildJsonObject { put("comment", "Looks good") },
),
)
}Content copied to clipboard