dots.v2.images.byImage_id().account_transfer.post()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.images.byImage_id(image_id).account_transfer.post(body: Images_post_account_transfer_createMember1 | Images_post_account_transfer_createMember2, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Account_transferPostResponse>

Description

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

Only snapshot images may be transferred by this endpoint to another account.

An image account transfer always has exactly one recipient, specified in the request body. The recipient can be one of the following:

  • A DigitalOcean account, denoted by recipient_email in the request body. The recipient will receive an email with instructions to accept the transfer. Once the recipient accepts the transfer, the image will be moved to their account.

  • A DigitalOcean team, denoted by recipient_uuid in the request body. If the user has sufficient permissions in the recipient team, the transfer will be automatically accepted and the image will be moved to the recipient team’s account. Otherwise, the transfer will be pending until a user with sufficient permissions in the recipient team accepts the transfer.

Parameters

Path Parameters

image_id integer required

Example: 62137902

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

Request Body

body object required
Show child properties
recipientEmail string optional

Example: [email protected]

The email address of the user account that the image will be transferred to.

recipientUuid string optional

Example: 4f6c71e2-1e90-4762-9fee-6cc4a0a9f2cf

The UUID of the team that the image will be transferred to.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.images
    .byImage_id(62137902).account_transfer.post({
    recipientEmail: "[email protected]",
});

Response Example

Show Response Example
{
  "transfer_id": 3164444
}

More Information

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