Can I set up an external data synchronization trigger? Is it possible too trigger sync job with any scripts? Let's say I have a back-end for editing a JSON output file from DSYNC. When I have edited this saved to a new file , Do I have to set up a scheduled Job or is it possible to start the sync job in DSYNC from my website?
YES - Non-real-time jobs have a URL which you can call to trigger the job. You can see the URL in the right sidebar when you select a job.
Create a secure token
Under ‘My Account’ section create an API Key and add that key to your request header: Auth-Token: <your_dsync_api_key>.
That should be sufficient to trigger the job externally.
Important Notes for Developers:
- The data you are posting from the external source will need to be in the correct format as per the source endpoint data layout set up in DSYNC
- The method is always POST (Please utilize a POST request you need to send to trigger the job)
- You will need to append the API key to the end of the URL