Posts data to BellaDati in JSON format.
This endpoint is designed to consume larger amounts of data. If you want to insert single records (record by record), use POST Form Data endpoint instead. |
Resource URL | |
HTTP Method |
|
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:
|
|
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 |