You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

/api/dataSets/:id/attributes/:code/subsets/create

Create a new subset for given data set ID and attribute code.

Resource Information

Resource URL

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

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
data

Form contents to submit in following JSON format:

namename of the subset
{"name":"Subset 1"}

Response Structure

JSON response contains one JSON object with the following element:


idID of the new subset


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={\"name\": \"Subset 1\"}" https://service.belladati.com/api/dataSets/5745/attributes/L_PRODUCT_TYPE/subsets/create


The JSON format response:

{
    "id""j3KE8bj7jc"
}


  • No labels