Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Build trigger

Abort a deploy and mark it as failed

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const buildTriggerId = "1822";
await client.buildTriggers.abort(buildTriggerId);
}
run();