The name of the filter
The actual filter
Whether it's a shared filter or not
const SiteClient = require('datocms-client').SiteClient;const client = new SiteClient('YOUR-API-TOKEN');const uploadFilterId = '34';client.uploadFilter.update(uploadFilterId, {name: 'Draft posts',shared: true,filter: {status: {eq: 'draft'}}}).then((uploadFilter) => {console.log(uploadFilter);}).catch((error) => {console.error(error);});
> node example.js{"id": "34","name": "Draft posts","filter": {"status": {"eq": "draft"}},"shared": true}