pydo.gateway_session_approvals.update()
Generated on 6 Nov 2026
from pydo version
v0.45.0
Usage
client.gateway_session_approvals.update(
session_id="2b3c9f0e-1a4d-4e5f-8a7b-6c5d4e3f2a1b",
approval_id="7d3c2b1a-9e8f-4a6b-8c5d-4e3f2a1b0c9d",
x_actor_id=None,
body={
"decision": "approve",
},
)Description
Approves or denies a tool call that is waiting for approval. A tool result returns _meta.status set to requires_approval when the session policy sets ask for the call, and its _meta.decide gives this request’s path.
Send the decision with the session owner’s token. Approval is a separate control request, not a tool, so an agent cannot approve its own calls. After approving, repeat the original call with the same arguments before expires_at. An approval applies only to that session, tool version, and set of arguments, and is used once. To ask again after a denial or expiry, repeat the tool call.
Parameters
session_idstring requiredThe session UUID: the value at the end of the session's
sessionUrnandmcpUrl. The session must belong to the authenticated user and team.approval_idstring requiredThe
approval_idfrom a tool result whose_meta.statusisrequires_approval.x_actor_idstring optionalThe actor you expect the session or endpoint to be bound to. It does not select an actor or connections; those come from the session's or endpoint's
actor_id. When sent, it must equal that binding. A different value, including any value for a target with no actor, returns 403 with the message "The session is not bound to the request's actor."decisionstring requiredWhether to let the pending call run.
Request Sample
Response Example
More Information
See /approvals/session/{session_id}/{approval_id} in the API reference for additional detail on responses, headers, parameters, and more.