Skip to main content
Skip table of contents

Uploading a user profile icon

Request

To enable a client application to get and display the available profile icon images to the user, you must first upload these images.

To upload a profile image, send a PUT request to:

CODE
https://<host>:<port>/imagemetadata/v1/profile/{resourceId}

Headers

  • token – request authentication token

  • x-correlation-id – identifier for logging, to correlate messages across a call flow

Mandatory arguments

  • resourceId – the resource ID for the uploaded image (in the URL)

  • image – the image file to be uploaded (multipart/form-data)

The name field shown in the API documentation is the filename of the image file being uploaded. You do not need to pass it a value explicitly.

Optional arguments

None

Response

A successful request returns an HTTP 200 status.

A bad request returns an HTTP 400 status.

Example

A successful request returns a payload that looks like this:

JSON
{
  "imageId": "string"
}

See also

Image Metadata Service (IMDS) API documentation

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.