jemkey | 2021-09-29 15:27:16 UTC | #1
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 }
anon14299330 | 2021-11-17 17:36:00 UTC | #2
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.
system | 2021-10-30 16:43:01 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 12182