Skip to main content

Hello,

we are working on a use case where we would like do do a re-sync of historic items for a longer period. To go via the interface for such a long time or performing a full historic sync don’t seem to be the best options. 

We could imagine a few possible ways to accomplish this task:

  1. Python / powershell script
  2. Swagger 
  3. API calls such as ‘12.22.3. Re-sync list of context items’ and run these via tools like postman

Could you help us with setting up a way so that we can do the sync ourselves when needed? 

Here are a few infos regarding our case:

  • SaaS instance
  • Postman, VS code available
  • Context Item Type: BATCH ANALYSIS
  • Time frame: 1.1.2022 - today
  • Expected number of Context items: 5000

Thank you for your help already!

Best
​​​​​​​Sören

 

Hi Sören,

I did not know about this resync endpoint myself! Looking a bit into it, I think a request like the one below should do the trick, which you could of course do from Postman or some script.

POST to <url>/context/source/sync/filters

{
"filters": [
{
"type": "TYPE_FILTER",
"types": [
"BATCH_ANALYSIS"
]
},
{
"startDate": "2022-01-01T00:00:00.000+00:00",
"endDate": "2026-01-01T00:00:00.000+00:00",
"type": "INTERVAL_FILTER"
}
],
"createdBefore": "2026-01-01T00:00:00+00:00"
}

 

Happy to talk if you need something more specific or automated!

 

Wouter


Great! Thank you Wouter. We will test it and come back to you if we can’t get it running.