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').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    client.uploadTag.create({
    name: 'Pictures of me'
    })
    .then((uploadTag) => {
    console.log(uploadTag);
    })
    .catch((error) => {
    console.error(error);
    });
    Returned output:
    > node example.js
    {
    "id": "42",
    "name": "Pictures of me"
    }