You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

/api/reports/:id/images

Posts an image to the report with the specified ID.

Resource Information

Request Parameters

Parameters

Detail

Example

id

ID of the report for which to post an image. You can find the ID in the response to /api/reports.

123

name

Image name.

My image name
fileImage file. 

Sample Request / Response

Using curl:

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/123/images

When the image has been posted successfully, the response has the HTTP status code 200 and the content contains image view ID.

{
    "viewId":"34-uRSxwaBSD"
}
  • No labels