Show examples in:
Abort a deploy and mark it as failed

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const buildTriggerId = '1822';
await client.buildTriggers.abort(buildTriggerId);
}
run();