Choose your language:
    Publish items in bulk
    Parameters
    items  Array<item.id>  Optional

    Records to publish

    Examples

    Example code:
    const SiteClient = require('datocms-client').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    client.item.bulkPublish({
    items: [
    '4235'
    ]
    })
    .catch((error) => {
    console.error(error);
    });