Modify an Image




Supported Media Types
Body ()
Root Schema : schema
Type: object
Show Source
Back to Top


Supported Media Types

201 Response

Image update status details.
Body ()
Root Schema : ImagesResponse
Type: object
Result of the file upload
Show Source
Back to Top


The following example shows how to modify a public image by submitting a PUT request on the REST resource using cURL. For more information about cURL, see Use cURL.

cURL Command


The command in this example uses the URL structure https://tenant-base-url/resource-path, where tenant-base-url represents the Identity Service URL, and the resource path represents the Identity Service API. See Send Requests for the appropriate URL structure to use.
-H "Content-Type:multipart/form-data"
-H "Authorization: Bearer <Access Token Value>"

Example of Request Body

The following shows an example of the request body in JSON format:

  "Content-Disposition: form-data; name=\"fileName\"\n",
  "Content-Disposition: form-data; name=\"file\"; \n",
  "Content-Type: image/png\n",
  "???PNG image binary data\n",

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Content-length: 10420\n
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary3fkX18wB95KvCil5\n
Date: Fri, 25 Mar 2016 17:57:14 GMT

Example of Response Body

The following example shows the contents of the response body in JSON format:

  "fileName": "images/201512312459/chess.jpg",
  "isPublic": true,
  "fileUrl": "https://tenant-base-url/v1/Storage-test/B027/images/201512312459/chess.jpg"
Back to Top