API requests can be forced into synchronous mode
By default, requests immediately return successfully, even if the requested action (modifying a site, adding a database, etc.) isn't actually performed yet. Internally, the action is added to a queue and executed asynchronously, although the induced delay is usually very small (less than 100 milliseconds).
You can now force your requests to return when the underlying action is really executed by setting the HTTP header 'alwaysdata-synchronous' to 'yes'.
10 fév. 2017