/api/dataSets/dataSources/:id/schedule
Posts a data source execution schedule to the data source with the specified ID.
Resource Information
Resource URL | https://service.belladati.com/api/dataSets/dataSources/:id/schedule |
HTTP Method |
|
Request Parameters
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:
| { "when" : "Fri, 16 Aug 2013 12:56:50 GMT", "overwrite": { "policy": "DELETE_ALL", "dateAttribute": "L_DATE_ATTRIBUTE_CODE", "dateFrom": "2013-08-06", "dateTo": "2013-08-20", "attributesAll" : true, "attributes" : [ "L_ATTRIBUTE_1", "L_ATTRIBUTE_2" ] }, "repeateInterval" : "CUSTOM", "customRepeateInterval" : 30 } |
Sample Request / Response
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.