Posts a data source execution schedule to the data source with the specified ID.
Resource URL | https://service.belladati.com/api/dataSets/dataSources/:id/schedule |
HTTP Method |
|
Parameters | Detail | Example | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID of the data source for which to schedule an execution. You can find the ID in the response to | 123 | |||||||||||||||||||||||||
| Execution parameters in JSON format with following definition:
|
|
Using curl
:
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "params={\"when\" : \"Fri, 16 Aug 2013 12:56:50 GMT\", \"policy\" : \"DELETE_ALL\", \"overwriteFrom\" : \"Fri, 16 Aug 2013\", \"overwriteTo\" : \"Fri, 20 Aug 2013\", \"overwriteDateAttribute\" : \"L_DATE_ATTRIBUTE_CODE\", \"overwriteAttributes\" : [ { \"L_ATTRIBUTE\" }, { \"L_ATTRIBUTE_2\" } ], \"overwriteAttributesAll\" : \"true\", \"repeateInterval\" : \"CUSTOM\", "customRepeateInterval" : 30}" https://service.belladati.com/api/dataSets/dataSources/123/schedule |
When the schedule has been posted successfully, the response has the HTTP status code 200 and the content is the ID of the execution.