Sorry, no results found for "".

Show examples in:
Javascript HTTP
Endpoint info
Available examples

Content Management API > Uploads filter

List all filters

Returns

Returns an array of resource objects of type upload_filter

Examples

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,
}