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/subsets/:sid/addValue

Adds a new 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/addValue

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
data

Form contents to submit in following JSON format:

memberAttribute member which should be added as the subset value
customMemberId

ID of the custom member which should be added as the subset value

If customMemberId is specified, member cannot be used.

parentID of the subset value which should be used as the parent. For nested subsets only. (Optional)



Code Block
{"customMemberId":"xqocuMnZuO","parent":"POEvIZazDv"}


Response Structure

JSON response contains one JSON object with following element:


idID of the subset value


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={\"customMemberId\": \"xqocuMnZuO\", "\parent\": \"POEvIZazDv\"}" https://service.belladati.com/api/dataSets/5745/attributes/L_PRODUCT_TYPE/subsets/kwuQpitto1/addValue


The JSON format response:

{
    "id""22fyrmwIMY"
}



Sv translation
languageja

/api/dataSets/:id/attributes/:code/subsets/:sid/addValue

指定したデータセットのID、属性コード、サブセットに新しいサブセットの値を追加します。

リソース情報

リソースURL

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

HTTPメソッド

POST

リクエストパラメーター

idデータセットのID。データセットのIDは /api/dataSets のレスポンスから取得することができます。123
code属性コード。属性コードは /api/dataSets/:id のレスポンスから取得することができます。L_STATE
sidサブセットのIDkwuQpitto1
data

フォームコンテンツに設定するJSON形式:

memberサブセットの値として追加する属性メンバー
customMemberId

サブセットの値として追加するカスタムメンバーのID。

customMemberId が指定された場合、 member は無効となります。

parent

親として適用するサブセット値のID。ネストされたサブセットにのみ使用。(任意)



Code Block
{"customMemberId":"xqocuMnZuO","parent":"POEvIZazDv"}


レスポンス構造

JSONレスポンスは次の要素ように1 つのJSONオブジェクトが含まれます:


idID of the subset value


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

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={\"customMemberId\": \"xqocuMnZuO\", "\parent\": \"POEvIZazDv\"}" https://service.belladati.com/api/dataSets/5745/attributes/L_PRODUCT_TYPE/subsets/kwuQpitto1/addValue


JSON形式のレスポンス:

{
    "id""22fyrmwIMY"
}