pydo.harness.post_session_hitl()
Generated on 6 Nov 2026
from pydo version
v0.45.0
Usage
client.harness.post_session_hitl(
session_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
request_id="hitl_example",
x_device_uuid=None,
body={
"outcome": "HITL_OUTCOME_UNSPECIFIED",
"reason": "example",
"source": "RESOLUTION_SOURCE_UNSPECIFIED",
},
)Description
harness-api forwards the decision into the owning microVM via the inbound runtime.v1.OHR.ResolveHITL RPC (dialed through the guest-fronting proxy), which unblocks the gated agent action. The resolution is also echoed to all attached clients as a HITLResolved event on StreamSession. Returns 204 No Content on success.
Parameters
session_idstring requiredExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890The session UUID.
request_idstring requiredExample:
hitl_exampleThe HITL request identifier.
x_device_uuidstring optionalExample:
device-uuid-exampleOptional hardware device id forwarded by doctl. Recorded on the resulting HITL decision.
outcomestring requiredHITLOutcome is the user's decision on a HITL request. DEFER backs off this attempt without treating it as a rejection.
reasonstring optionalExample:
exampleOptional free-text reason. Captured in the audit trail; not interpreted.
sourcestring optionalHow a HITL resolution was triggered. Defaults to RESOLUTION_SOURCE_OUT_OF_BAND when omitted.
Request Sample
More Information
See /v2/agents/sessions/{session_id}/hitl/{request_id} in the API reference for additional detail on responses, headers, parameters, and more.