Add / Update User's Profile Photo

Hi,

I'm trying to add/update a profile photo to a user using PATCH /api/v2/users/{userId}

I get a 200 response back but either checking via the API (or in the GUI) the change isn't showing.

Sample JSON payload - I'm testing via API Explorer.

    {
  "images": [
    {
      "resolution": "x48",
      "imageUri": "https://prod-euw2-inin-directory-service-profile.s3-eu-west-2.amazonaws.com/image.jpg"
    },
    {
      "resolution": "x96",
      "imageUri": "https://prod-euw2-inin-directory-service-profile.s3-eu-west-2.amazonaws.com/image.jpg"
    },
    {
      "resolution": "x128",
      "imageUri": "https://prod-euw2-inin-directory-service-profile.s3-eu-west-2.amazonaws.com/image.jpg"
    },
    {
      "resolution": "x200",
      "imageUri": "https://prod-euw2-inin-directory-service-profile.s3-eu-west-2.amazonaws.com/image.jpg"
    },
    {
      "resolution": "x300",
      "imageUri": "https://prod-euw2-inin-directory-service-profile.s3-eu-west-2.amazonaws.com/image.jpg"
    },
    {
      "resolution": "x400",
      "imageUri": "https://prod-euw2-inin-directory-service-profile.s3-eu-west-2.amazonaws.com/image.jpg"
    }
  ],
  "version": 48
}

Hi jemkey,

I have created a user and tried to update their photo. I am also getting a 200 response but the update is not showing in the user object. I will track down this issue and get back to you as soon as possible.

Kind regards,

Michael

EDIT: There is an issue with the API. Calling PATCH /api/v2/users/{userId} with the example request body yields a 200 successful response, but the image values passed in the request are ignored by the server and the user is not updated. A ticket (CORE-6615) has been opened for this issue. Thanks.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.