Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Record

Move items to stage in bulk

Body parameters

stage string Required

Stage to be moved to

Example: "in_review"
items Required

Records to move (a maximum of 200 records are allowed per request)

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const item = await client.items.bulkMoveToStage({
stage: "in_review",
items: [{ type: "item", id: "hWl-mnkWRYmMCSTq4z_piQ" }],
});
// Check the 'Returned output' tab for the result ☝️
console.log(item);
}
run();
[]