pydo.harness.cancel_session_workspace_transfer()

Generated on 13 Nov 2026 from pydo version v0.46.0

Usage

client.harness.cancel_session_workspace_transfer(
    session_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    transfer_id="tr_example",
    body={
        "reason": "example",
    },
)
Returns JSON Raises HttpResponseError

Description

Aborts an in-flight transfer. Idempotent: cancelling an already-terminal transfer returns aborted: false with the current status. The request body is optional.

Parameters

session_id string required

Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890

The session UUID.

transfer_id string required

Example: tr_example

The workspace transfer identifier.

reason string optional

Example: example

Optional caller-visible audit/debug context.

Request Sample

Show Request Sample
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

req = {
  "reason": "example"
}

resp = client.harness.cancel_session_workspace_transfer(session_id="a1b2c3d4-e5f6-7890-abcd-ef1234567890", transfer_id="tr_example", body=req)

Response Example

Show Response Example
{
  "transfer_id": "example",
  "aborted": true,
  "status": "pending"
}

More Information

See /v2/agents/sessions/{session_id}/workspace/transfers/{transfer_id}/cancel in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.