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/:value/image

Edits image in appearance settings for given data set ID, attribute code and attribute value.

Resource Information

Request Parameters

Parameters

Detail

Example
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
valueAttribute value (encoded). You can find the value in the response to /api/dataSets/:id/attributes/:code/values.North%20Carolina

file

Image file.

 

Sample Request / Response

Using curl:

Code Block
curl POST -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -H "Content-Type: multipart/form-data" -F "file=@myImage.png" "https://service.belladati.com/api/dataSets/123/attributes/L_STATE/North%20Carolina/image"

When the form has been submitted successfully, the server replies with an HTTP status code of 200 and an empty body.

 

Sv translation
languageja

/api/dataSets/:id/attributes/:code/:value/image

指定されたデータセットID、属性コード、および属性値の外観設定のイメージを編集します。

リソース情報

リクエストパラメーター

パラメーター

詳細

idデータセット識別子。/api/dataSetsに応答して、IDを見つけることができます。123
codeコード属性。 /api/dataSets/:idに応じてコードを見つけることができます。L_STATE
value属性値(エンコードされました)。/api/dataSets/:id/attributes/:code/valuesに応じて値を見つけることができます。North%20Carolina

file

画像ファイル


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

curl使用:

Code Block
curl POST -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -H "Content-Type: multipart/form-data" -F "file=@myImage.png" "https://service.belladati.com/api/dataSets/123/attributes/L_STATE/North%20Carolina/image"

フォームが正常に送信された場合、サーバーはHTTPステータスコード200と空の本文で応答します。