The name of the filter
The actual filter
Whether it's a shared filter or not
import { buildClient } from '@datocms/cma-client-node';async function run() {const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });const uploadFilter = await client.uploadFilters.create({name: 'Draft posts',filter: {status: {eq: 'draft'}},shared: true});console.log(uploadFilter);}run();
{id: '-Lo34LFSTLmgPToamzJLcg',name: 'Draft posts',filter: {status: {eq: 'draft'}},shared: true}