pydo.images.post_account_transfer_cancel()

Generated on 1 Oct 2026 from pydo version v0.43.0

Usage

client.images.post_account_transfer_cancel(
    image_id=62137902,
    body={
        "transfer_id": 3164444,
    },
)
Returns NoneRaises HttpResponseError

Description

To cancel an account transfer for an image, send a POST request to /v2/images/{image_id}/account_transfer/cancel.

Only the sender of an image account transfer can cancel the transfer. If the transfer is canceled, the image will remain in the sender’s account and will not be transferred to the recipient.

Parameters

image_id integer required

A unique number that can be used to identify and reference a specific image.

transfer_id integer required

Example: 3164444

A unique number that used to identify and reference an image account transfer.

Request Sample

Show Request Sample
import os
from pydo import Client

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

req = {
  "transfer_id": 3164444
}

resp = client.images.post_account_transfer_cancel(image_id=62137902, body=req)

More Information

See /v2/images/{image_id}/account_transfer/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.