Choose your language:
    Add tags to assets in bulk
    Parameters
    tags  Array<string>  Optional

    The tags to add to the assets

    uploads  Array<upload.id>  Optional

    Assets to tag

    Examples

    Example code:
    const SiteClient = require('datocms-client').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    client.upload.bulkTag({
    tags: [
    'cats'
    ],
    uploads: [
    '666'
    ]
    })
    .catch((error) => {
    console.error(error);
    });