/api/dataSets/:id/attributes/:code/subsets/:sid/addValue

Adds a new subset value for given data set ID, attribute code and subset.

Resource Information

Resource URL

https://service.belladati.com/api/dataSets/:id/attributes/:code/subsets/:sid/addValue

HTTP Method

POST

Request Parameters

idData Set identifier. You can find the ID in the response to /api/dataSets.123
codeAttribute code. You can find the code in the response to /api/dataSets/:id.L_STATE
sidID of the subsetkwuQpitto1
data

Form contents to submit in following JSON format:

memberAttribute 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.

parentID of the subset value which should be used as the parent. For nested subsets only. (Optional)
{"customMemberId":"xqocuMnZuO","parent":"POEvIZazDv"}

Response Structure

JSON response contains one JSON object with following element:


idID of the subset value


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 "data={\"customMemberId\": \"xqocuMnZuO\", "\parent\": \"POEvIZazDv\"}" https://service.belladati.com/api/dataSets/5745/attributes/L_PRODUCT_TYPE/subsets/kwuQpitto1/addValue


The JSON format response:

{
    "id""22fyrmwIMY"
}


  • No labels