Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen

/api/dataSets/:id/attributes/:code/subsets/:sid/value/:svid

Edits the 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/value/:svid

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
svidID of the subset valueT9yI2XwdWV
data

Form contents to submit in following JSON format:

negativeValueBoolean parameter defining if a negative value should be used when calculating the value of parent in a nested subset.
drillDownDisabledBoolean parameter defining if the drill-down functionality is enabled or disabled in a nested subset.



Code Block
{"negativeValue":"true", "drillDownDisabled":"false"}


Response Structure

If the request is successfully executed, it will return an empty response with HTTP Status 200 OK.

If the user tries to set the parameter negativeValue to true for a subset value without any children, error TREE_ROOT_VALUE_CANNOT_BE_NEGATIVE will be returned.

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={\"negativeValue\": \"false\", "\drillDownDisabled\": \"true\"}" https://service.belladati.com/api/dataSets/5745/attributes/L_PRODUCT_TYPE/subsets/kwuQpitto1/values/T9yI2XwdWV





Sv translation
languageja

/api/dataSets/:id/attributes/:code/subsets/:sid/value/:svid

指定されたデータセットID、属性コード、サブセットのサブセット値を編集します。

リソース情報

リソースURL

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

HTTPメソッド

POST

リクエストパラメーター

パラメーター詳細

id

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

123
code

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

L_STATE
sidサブセットのID。kwuQpitto1
svidサブセット値のID。T9yI2XwdWV
data

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

説明
negativeValue

nested subsetの親の値を計算するときに、負の値を使用する必要があるかどうかを定義するBooleanパラメーター。

drillDownDisabled

nested subsetでドリルダウン機能を有効にするか無効にするかを定義するBooleanパラメーター。



Code Block
{"negativeValue":"true", "drillDownDisabled":"false"}


レスポンス構造

リクエストが正常に実行されると、HTTPステータスコード 200 OKの空のレスポンスが返されます。

ユーザーが子のないサブセット値に対して、negativeValueパラメーターをtrueに設定しようとすると、TREE_ROOT_VALUE_CANNOT_BE_NEGATIVEエラーが返されます。

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

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={\"negativeValue\": \"false\", "\drillDownDisabled\": \"true\"}" https://service.belladati.com/api/dataSets/5745/attributes/L_PRODUCT_TYPE/subsets/kwuQpitto1/values/T9yI2XwdWV