Show examples in:
JavascriptHTTP
Endpoint info
Available examples
Dashboard API > Site transfer request

Decline a site transfer request

Warning: Experimental API

Please note that the Dashboard API is an experimental, prerelease API. This API method is considered unstable, and should be avoided in production environments and automations. Changes may occur at any time without warning.

Examples

import { buildClient } from "@datocms/dashboard-client";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const siteTransferId = "124";
await client.siteTransfers.decline(siteTransferId);
}
run();