Forum Discussion

ahwanmishra's avatar
ahwanmishra
Regular Visitor
1 year ago
Solved

Clarification on Asynchronous vs Synchronous Behavior of Enhanced API for Dataset Refresh

I’m using the Enhanced API to refresh a dataset. The API waits for the dataset refresh to complete before returning the response, which seems like synchronous behavior. However, according to the do...
  • lbendlin's avatar
    1 year ago

    Not sure if anything has changed recently but in general the API only allows you to request a refresh.  With the Enhanced API you get a Request ID back.  

     

    Mind you , it is just a request, and it is (was?) asynchronous . If you want to know the status of your request you need to implement your own polling mechanism. Ideally with reasonable intervals (eg every five minutes).  Without Request ID the indicator is the presence of and EndDate for the first entry in the refresh history.  With Request ID (ie enhanced API) you can submit a polling query which returns the status for that Request ID.