Description
Below is code in Powershell I am trying to run to upload a simple test picture, I’m posting because I’ve been using the API for 2 months now, and I’ve used every single call except this one, and I just seem to be missing something, but I’m not sure what. No matter what I do I receive the 500 internal server error, I copied and pasted the code generation from the API page, I feel as if I’m misunderstanding this API call. Any input appreciated.
Thank you for reaching out to the Zoom Developer Forum. Have you had a chance to test this in a REST client such as cURL or Postman? We have an excellent collection of requests in our Postman Collection that you can use for testing.
If you’re seeing the same issue in a REST client, please provide the request details that you are using for the REST client and I’ll investigate this further. If the request works in the REST client, I would review the script to ensure that it is performing the same steps as the REST client.
I hope that helps! Let me know if you have any questions.
Thank you! for the suggestion to use Postman I can’t believe I’ve been doing APIs for this long, and I’ve never heard of this program.
Note for users trying to run the ‘Update a User’s Profile Picture’ the API web interface will not do it justice, as it can not see your desktop/file explorer to inject/parse the jpg file. Use postman to see some great code generation
Note for Powershell developers, multi-form data does not perform on Powershell v5.1 (the last version of powershell distributed by Microsoft automatically) I needed to upgrade to powershell 7 to get the code generated by Postman to work. I did not test Powershell v6, I jumped right to 7. Regardless, get up to the latest version of Powershell, the Zoom/Postman developers have put some serious work into keeping the methods up to date with the latest version tested.