Choose your language:
    Trigger a deploy

    Examples

    Example code:
    const SiteClient = require('datocms-client').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    const buildTriggerId = '1822';
    client.buildTrigger.trigger(buildTriggerId)
    .then(() => {
    console.log('Done!');
    })
    .catch((error) => {
    console.error(error);
    });