Choose your language:
    List all filters
    Returns
    Returns an array of upload_filter objects.

    Examples

    Example code:
    const SiteClient = require('datocms-client').SiteClient;
    const client = new SiteClient('YOUR-API-TOKEN');
    client.uploadFilters.all()
    .then((uploadFilters) => {
    uploadFilters.forEach((uploadFilter) => {
    console.log(uploadFilter);
    });
    })
    .catch((error) => {
    console.error(error);
    });
    Returned output:
    > node example.js
    {
    "id": "34",
    "name": "Draft posts",
    "filter": {
    "status": {
    "eq": "draft"
    }
    },
    "shared": true
    }