Show examples in:
    Move items to stage in bulk

    Parameters

    stage  string  Required

    Stage to be moved to

    items  Array of { type: "item", id: item.id }  Required

    Records to move

    Examples

    Example code:
    import { buildClient } from '@datocms/cma-client-node';
    async function run() {
    const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
    const result = await client.items.bulkMoveToStage({
    stage: 'in_review',
    items: [
    {
    type: 'item',
    id: '4235'
    }
    ]
    });
    console.log(result);
    }
    run();
    Returned output:
    []