/api/import/:id
Posts data to BellaDati in JSON format.
Resource Information
Resource URL | |
HTTP Method |
|
Request Parameters
Parameters | Detail | Example | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID of the data set. You can find the ID in the response to | 123 | ||||||||||||||||||||||||||||
| JSON file containing data content to submit with following structure:
| { "overwrite": { "policy": "DELETE_ALL", "dateAttribute": "L_DATE", "dateFrom": "2014-12-01", "dateTo": "2014-12-31", "attributesAll": false, "overwriteAttributes": [ "L_ID", "L_DATE" ] }, "columns" : [ { "code" : "L_COUNTRY_OR_AREA" }, { "code" : "L_DATE" "format" : "yyyy-MM-dd" } ], "data" : [ [ "Country or Area-data-0", "2014-12-01" ], [ "Country or Area-data-1", "2014-12-02" ] ] } |
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\"" -H "Content-Type: application/octet-stream" --data-binary @MyDataFile.json https://service.belladati.com/api/import/123
When the file has been submitted successfully, the server replies with an HTTP status code of 200 and the content contains import ID:
Import id=456 started
Overview
Content Tools