/api/dataSets/:id/data
Updates existing row or inserts new row in data set.
Resource Information
Resource URL | |
---|---|
HTTP Method |
|
Request Parameters
Parameters | Detail | Example | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
id | ID of the data set to modify data in. You can find the ID in the response to /api/dataSets . | 123 | ||||||||
| One data row in JSON format with following definition:
| { "id" : " 456" , "L_COUNTRY" : "Great Britain" , "M_REVENUE" : " 1234.5678" } |
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 "dataRow={\"id\":\"456\",\"L_COUNTRY\":\"Great Britain\",\"M_REVENUE\":\"1234.5678\"}" https://service.belladati.com/api/dataSets/123/data
When the row has been updated/added successfully, the response has the HTTP status code 200 and the content "OK".
When there is no attribute/indicator value to update or add, the response has the HTTP status code 200 and the content "Nothing to insert".
Overview
Content Tools