Choose your language:
    Create a new upload tag
    Parameters
    name  string  Optional

    The tag name

    Returns
    Returns a upload_tag object.

    Examples

    Example code:
    const { SiteClient } = require('datocms-client');
    async function run() {
    const client = new SiteClient('YOUR-API-TOKEN');
    const uploadTag = await client.uploadTag.create({
    name: 'Pictures of me'
    });
    console.log(uploadTag);
    }
    run();
    Returned output:
    > node example.js
    {
    "id": "42",
    "name": "Pictures of me"
    }