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 uploadFilterId = '-Lo34LFSTLmgPToamzJLcg';const uploadFilter = await client.uploadFilters.update(uploadFilterId, {name: 'Draft posts',filter: {status: {eq: 'draft'}}});console.log(uploadFilter);}run();