I have an automated workflow for onboarding new hires which uses the Zoom/Zoom Phone APIs to create the user account in Zoom, assign a phone number, device, etc. This has been working without issue for months, until today.
The first step is to create the user account by making a POST to https://api.zoom.us/v2/users. This step is returning a successful status code (201) and the response is as follows:
{“id”:"[redacted] “,“first_name”:“redacted”,“last_name”:“redacted”,“email”:"xxx@xxx.com”,“type”:2}
The next step is to update the user by making a PATCH request to https://api.zoom.us/v2/users/[redacted] with the following
Headers:
{
“Accept”: “application/json”,
“Authorization”: “Bearer [token]”,
“Content-Type”: “application/json”
}
Body:
{
“timezone”: “America/New_York”,
“location”: “Garden City”,
“job_title”: “Associate Trainee”
}
This is returning a 404 status code with response content {“code”:1001,“message”:“User does not exist: [redacted]”}
I can see from the front-end that the user shows up under Pending Users and if I send a GET to https://api.zoom.us/v2/users/[redacted] it returns the user record as expected, so the issue seems to be with the Update a user endpoint.