Versions Compared

Key

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

/api/reports/views/:id/image

Edits image in the view with the specified ID.

Resource Information

Request Parameters

Parameters

Detail

Example

id

ID of the view for which to edit an image. It has to be image view. You can find the ID in the response to /api/reports/:id.

12345
fileImage file. 

Sample Request / Response

Using curl (you have to use "@" character before full path to image file):

Code Block
curl POST -H "Content-Type: multipart/form-data" -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -F "file=@/path/to/file.png" "https://service.belladati.com/api/reports/views/12345/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/reports/views/:id/image

指定したIDでビュー内の画像を編集します。

リソース情報

リクエストパラメーター

パラメーター

詳細

id

画像を編集するビューのID。それは画像ビューでなければなりません。 IDは、/api/reports/:id へのレスポンスで見つけることができます。

12345
file画像ファイル

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

curl使用 (画像ファイルのフルパスの前に "@" 文字を使用する必要があります):

Code Block
curl POST -H "Content-Type: multipart/form-data" -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -F "file=@/path/to/file.png" "https://service.belladati.com/api/reports/views/12345/image"

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