pydo.harness.update_session()
Generated on 13 Nov 2026
from pydo version
v0.46.0
Usage
client.harness.update_session(
session_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
body={
"resume_on_topoff": False,
},
)Description
Partial update of session-scoped settings (not the agent manifest / config). The body must include at least one recognized patchable property; an empty object {} is 400. Only properties listed on PatchSessionRequest are accepted — any other top-level JSON key is rejected with 400. Omitted properties are left unchanged. Today the only patchable field is resume_on_topoff; more session settings may be added over time. Terminal sessions (DESTROYED, FAILED) cannot be patched.
Parameters
session_idstring requiredExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890The session UUID.
resume_on_topoffboolean optionalExample:
FalseWhen present, sets whether this session opts in to automatic resumption when the team's prepayment balance is restored after a low-balance pause. Session-scoped consent, not config-scoped. Omitted properties are not modified.
Request Sample
Response Example
More Information
See /v2/agents/sessions/{session_id} in the API reference for additional detail on responses, headers, parameters, and more.