pydo.images.post_account_transfer_decline()

Generated on 3 Aug 2026 from pydo version v0.40.0

Usage

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

Description

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

Only the recipient of an image account transfer can decline the transfer. If the transfer is declined, 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_decline(image_id=62137902, body=req)

More Information

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