Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Manual tags

Create a new upload tag

Body parameters

name string Required

The tag name

Example: "Pictures of me"

Returns

Returns a resource object of type upload_tag

Examples

import { buildClient } from "@datocms/cma-client-node";
async function run() {
const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const uploadTag = await client.uploadTags.create({ name: "Pictures of me" });
// Check the 'Returned output' tab for the result ☝️
console.log(uploadTag);
}
run();
{ id: "42", name: "Pictures of me" }