Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Record

Publish multiple records

Query parameters

filter[ids] string

IDs of records to publish, comma separated (a maximum of 200 IDs are allowed per request)

Example: "42,86"

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.batchPublish({ "filter[ids]": "42,86" });
// Check the 'Returned output' tab for the result ☝️
console.log(item);
}
run();
[]