Sorry, no results found for "".
Returns an array of resource objects of type upload_filter
import { buildClient } from "@datocms/cma-client-node";
async function run() { const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });
const uploadFilters = await client.uploadFilters.list();
for (const uploadFilter of uploadFilters) { // Check the 'Returned output' tab for the result ☝️ console.log(uploadFilter); }}
run();
{ id: "-Lo34LFSTLmgPToamzJLcg", name: "Draft posts", filter: { status: { eq: "draft" } }, shared: true,}