At the moment we cannot filter documents by the date they were updated.
It would be great to filter them with a ts that would be the minimum updated_date to fetch.
ex:
const query = new URLSearchParams({
updated_date: 1716898473718,
}).toString();
const workspaceId = 'YOUR_workspaceId_PARAMETER';
const resp = await fetch(
`https://api.clickup.com/api/v3/workspaces/${workspaceId}/docs?${query}`,
{
method: 'GET',
headers: {
Authorization: 'YOUR_API_KEY_HERE'
}
}
);
const data = await resp.text();
console.log(data);
/*
{
"docs": [
{
"id": "string",
"date_created": 1716760800000,
"date_updated": 1716933600000,
"name": "string",
"type": 0,
"parent": {},
"public": true,
"workspace_id": 0,
"creator": 0,
"deleted": true,
"date_deleted": 0,
"deleted_by": 0,
"archived": true,
"archived_by": 0,
"date_archived": 0
}
],
"next_cursor": "string"
}
*/