Sorry, no results found for "".
The name of the filter
"Draft posts"
The actual filter
{ status: { eq: "draft" } }
Whether it's a shared filter or not
Returns a resource object of type upload_filter
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const uploadFilterId = "-Lo34LFSTLmgPToamzJLcg";7 8 const uploadFilter = await client.uploadFilters.update(uploadFilterId, {9 id: "-Lo34LFSTLmgPToamzJLcg",10 name: "Draft posts",11 filter: { status: { eq: "draft" } },12 });13 14 // Check the 'Returned output' tab for the result ☝️15 console.log(uploadFilter);16}17 18run();
1{2 id: "-Lo34LFSTLmgPToamzJLcg",3 name: "Draft posts",4 filter: { status: { eq: "draft" } },5 shared: true,6}