/api/dataSets/:id/attributes/:code/subsets/:sid/addValueAdds a new 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/addValue |
---|
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 | data | Form contents to submit in following JSON format: member | Attribute member which should be added as the subset value | customMemberId | ID of the custom member which should be added as the subset value If customMemberId is specified, member cannot be used. | parent | ID of the subset value which should be used as the parent. For nested subsets only. (Optional) |
|
Code Block |
---|
{"customMemberId":"xqocuMnZuO","parent":"POEvIZazDv"} |
|
Response StructureJSON response contains one JSON object with following element:
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={\"customMemberId\": \"xqocuMnZuO\", "\parent\": \"POEvIZazDv\"}" https://service.belladati.com/ api/dataSets/5745/attributes/L_PRODUCT_TYPE/subsets/kwuQpitto1/addValue
|
The JSON format response:
|