/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 |
|
Request Parameters
id | 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 | ||||||||||||
data | Form contents to submit in following JSON format:
| Example of an empty subset: {"name":"Subset 1"} Example of a subset with structure: {"name":"R1", "subsetValues":[{"member":"test", "children":[ {"member":"Virginia", "negativeValue":"true", drillDownDisabled:"true"} , {"member":"Texas"}]},{"member":"Coffee"},{"customMemberId":"jjLxqv2nKt" }] } |
Response Structure
JSON response contains one JSON object with the following element:
id | ID of the new subset |
Sample Request / Response
Using curl
:
|
The JSON format response:
{ |