Implement a 202 based method for long-lived actions.
Either of these methods will work:
- 202 response. We return an in progress message, the URL monday should check for updates, and how long to wait for the update. Polling would permit us to update in progress with an estimated time remaining, percent complete, etc.)
- 202 response. We return an in progress message. We then use an API method to post a call back with the status when completed. We could also post back progress statuses for completion or remaining time.
- Some combination of the above - make the URL and time optional, if present it will poll (for success/failure or updated progress [estimated remaining time, percent completed, etc.]) and then the final status can be there or posted to a callback URL. Developer flexibility or choice.