Sorry, no results found for "".

Show examples in:
Javascript HTTP

Content Management API > Upload

Batch add tags to uploads

Query parameters

filter[ids] string

IDs to tag, comma separated

Example: "42,86"

Body parameters

tags Required

Tags

Type: Array<string>
Example: ["cats"]

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const upload = await client.uploads.batchAddTags({ tags: ["cats"] });
// Check the 'Returned output' tab for the result ☝️
console.log(upload);
}
run();
[]