Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed translated content for 'zh'
Sv translation
languageen

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

Edits an existing custom member for given data set ID and attribute code.

Resource Information

Resource URL

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

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
cmidID of the custom member22fyrmwIMY
data

Form contents to submit in following JSON format:

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



Code Block
{"name": "custommember", "alias": "firstCM", "formula": "return firstValue('L_ABC')"}


Response Structure

JSON response contains one JSON object with following elements:


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\"" -d "data={\"name\": \"asd\", "\alias\": \"gghgh\", \"formula\":  \"return 10000\}" https://service.belladati.com/api/dataSets/5745/attributes/L_PRODUCT_TYPE/customMembers/22fyrmwIMY


The JSON format response:

{
    "name""custommember",
    "alias""CM_alias",
    "formula""",
    "id""22fyrmwIMY"
}


If the provided formula is not valid, the endpoint will return status 406 Not Acceptable with response "FORMULA_NOT_VALID".

Sv translation
languageja

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

指定されたデータセットIDと属性コードの既存のカスタムメンバーを編集します。

リソース情報

リソースURL

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

HTTPメソッド

POST

リクエストパラメーター

パラメーター詳細
id

データセット識別子。 IDは、/api/dataSetsへのレスポンスで確認できます。

123
code

属性コード。このコードは、/api/dataSets/:idへのレスポンスで確認できます。

L_STATE
cmidカスタムメンバーのID22fyrmwIMY
data

次のJSON形式で送信するフォームの内容:

nameカスタムメンバーの名前
alias

カスタムメンバーのエイリアス (オプション)

formulaカスタムメンバーの式 (オプション)



Code Block
{"name": "custommember", "alias": "firstCM", "formula": "return firstValue('L_ABC')"}


レスポンス構造

JSONレスポンスには、次の要素を持つ1つのJSONオブジェクトが含まれています:


説明
nameカスタムメンバーの名前
aliasカスタムメンバーのエイリアス (オプション)
formulaカスタムメンバーの式 (オプション)
idカスタムメンバーのID


サンプルリクエスト/レスポンス

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\": \"asd\", "\alias\": \"gghgh\", \"formula\":  \"return 10000\}" https://service.belladati.com/api/dataSets/5745/attributes/L_PRODUCT_TYPE/customMembers/22fyrmwIMY


JSON形式のレスポンス:

{
    "name""custommember",
    "alias""CM_alias",
    "formula""",
    "id""22fyrmwIMY"
}


提供された式が有効でない場合、エンドポイントはステータス 406 Not Acceptable、"FORMULA_NOT_VALID" レスポンスを返します。