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/moveDown

Changes the order of values in the subset. Moves the subset value down one level 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/moveDown

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

Response Structure

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

If the value is already at the bottom, it will return "Index: 4, Size: 4" (4 is the number of branches in the subset) with HTTP Status 400 Bad Request.

Sample Request / Response

Using curl:

curl POST -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/subsets/j3KE8bj7jc/value/k5jHVkCRd1/moveDown




Sv translation
languageja

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

サブセット内の値の順序を変更します。指定されたデータセットID、属性コード、サブセットのサブセット値を1レベル下に移動します。

リソース情報

リソースURL

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

HTTPメソッド

POST

リクエストパラメーター

パラメーター詳細
id

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

123
code

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

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

レスポンス構造

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

値がすでに一番下にある場合は、HTTPステータスコード 400の Bad Requestで"Index: 4, Size: 4" (4はサブセット内のブランチの数) を返します。

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

curl使用:

curl POST -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/subsets/j3KE8bj7jc/value/k5jHVkCRd1/moveDown