/api/dataSets/:id/attributes/:code/customMembers

Lists custom members for the given data set ID and attribute code.

Resource Information

Resource URL

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

HTTP Method

GET

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

Response Structure

JSON response contains an array " customMembers" that contains multiple member objects with following definition:


namename of the custom member
aliasalias of the custom member (optional)
formulaformula of the custom member (optional)
idid of the custom member


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\"" https://service.belladati.com/api/dataSets/ 123 /attributes/L_STATE/customMembers

The JSON format response:

{
     "customMembers" : [
        {
             "name" "CM1" ,
             "alias" "custom_member_RAPI13" ,
             "formula" "return firstValue('L_ABC')" ,
             "id" "AEB04El654"
        },
        {
             "name" "3004" ,
             "alias" "3004" ,
             "id" "i2Iu5iWv0k"
        }
    ]
}

  • No labels