/api/dataSets/:id/attributes/:code/subsets/:sid/value/:svidEdits the subset value for given data set ID, attribute code and subset. Resource InformationResource URL | https://service.belladati.com/api/dataSets/:id/attributes/:code/subsets/:sid/value/:svid |
---|
HTTP Method | POST
|
---|
Request Parametersid | Data Set identifier. You can find the ID in the response to /api/dataSets . | 123 | code | Attribute code. You can find the code in the response to /api/dataSets/:id . | L_STATE | sid | ID of the subset | kwuQpitto1 | svid | ID of the subset value | T9yI2XwdWV | data | Form contents to submit in following JSON format: negativeValue | Boolean parameter defining if a negative value should be used when calculating the value of parent in a nested subset. | drillDownDisabled | Boolean parameter defining if the drill-down functionality is enabled or disabled in a nested subset. |
|
Code Block |
---|
{"negativeValue":"true", "drillDownDisabled":"false"} |
|
Response StructureIf the request is successfully executed, it will return an empty response with HTTP Status 200 OK. If the user tries to set the parameter negativeValue to true for a subset value without any children, error TREE_ROOT_VALUE_CANNOT_BE_NEGATIVE will be returned. Sample Request / ResponseUsing curl :
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "data={\"negativeValue\": \"false\", "\drillDownDisabled\": \"true\"}" https://service.belladati.com/ api/dataSets/5745/attributes/L_PRODUCT_TYPE/subsets/kwuQpitto1/values/T9yI2XwdWV
|
|