When Uploading profile images using the API, the images are not changing.

Kyle.L.2357
Kyle.L.2357 Posts: 4 ๐Ÿ”
edited April 21 in Higher Ed / Postsecondary

I receive the access token without any problem.

I can change the profile image through the UI without any problem at all.
I then loop through all the jpg images in a directory (Only 4 for testing) uploading them using the API.

I receive a status OK after each loop through, but I do not see the change in the image. I verified that the orgID is correct.

Below is the function that does the upload written in C#.

image.png

I'm logging some results and they are below:

image.png

Any suggestions or ideas would be greatly appreciated.

Tagged:

Answers

  • Mohit.B.878
    Mohit.B.878 Posts: 64

    Hello @Kyle.L.2357

    Thank you for reaching out, My name is Mohit, and Iโ€™m a member of the Product Support team. I have looked into the raised issue, and please know I have reached out to our internal team regarding the issue you've raised and am currently awaiting their response.

    Rest assured, I will follow up with you as soon as I have an update.

    In the meantime, if you have any additional questions or concerns, please donโ€™t hesitate to let me know.

    Best regards,
    Mohit Bhargav

  • Kyle.L.2357
    Kyle.L.2357 Posts: 4 ๐Ÿ”

    Thanks for getting back to me Mohit.
    I decided to try the same thing, except with a file stream instead of a byte stream.

    image.png

    I ended up with the same results:

    image.png
  • Hi Kyle,

    From a glance at the code, it seems that the issue could be that the profile image route you're trying to use ends in /image (small-i) and not /Image (big-I).

    Additionally, for help with code development and API structure, I would recommend posting this question in the Developers group, as they would have more insights on this matter. Which you can find it here:

    Developers โ€” Brightspace

    Best regards,

    Gabriel thurm

  • Kyle.L.2357
    Kyle.L.2357 Posts: 4 ๐Ÿ”

    Thanks Gabriel! I appreciate you responding.
    I'm a little confused at your response. You mention that what I'm sending uses a small i instead of a large i.
    I looked at my code and it is sending the large i. I then look at what I sent you and it clearly shows a large i.

    Did you mean to say I'm using a large i and I should be using a small i?
    Anyway, I changed it to a small i and got the same success message and the image did not update.

    image.png

    I will take your advice and post it in the developers group.

    Kyle

  • Abrar.S.661
    Abrar.S.661 Posts: 13
    edited April 16

    Hello Kyle,

    Thank you for trying to use the small i instead of the large i. You can certainly post it in the developers group or create a support case so we can have a look at this issue further as there may be an issue with the API.

    Best regards,
    Abrar Shakil