Description
I think this latest API update may have introduced a new bug. After issuing a request to the PATCH /v2/users/{userId}
endpoint, the host_key
field for that user got erased even though it was not included in the request. This didn’t happen prior to the update.
Error
The full error message or issue you are running into.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT
Which Endpoint/s?
PATCH /v2/users/{userId}
How To Reproduce (If applicable)
First issue a GET
user request. This responds with a user object that has a host key value:
{
"account_id": "redacted",
"cms_user_id": "",
"created_at": "2020-12-07T02:59:21Z",
"dept": "",
"email": "redacted",
"first_name": "Chris Peoples-Irvine, CA",
"group_ids": [
"j-cS5lkvQ1KAGiKDjG_LOA"
],
"host_key": "666245",
"id": "redacted",
"im_group_ids": [],
"jid": "",
"job_title": "",
"language": "",
"last_name": "",
"location": "",
"login_types": [
99
],
"personal_meeting_url": "https://zoom.us/j/8560425100",
"phone_number": "+null ",
"pmi": 8560425100,
"role_id": "2",
"role_name": "Member",
"status": "active",
"timezone": "",
"type": 2,
"use_pmi": false,
"verified": 1
}
Then issue a PATCH
to change the first name:
PATCH https://api.zoom.us/v2/users/vor.sandbox.001@otahq.com
Headers:
Authorization: Bearer redacted
Content-Type: application/json
Body:
{
"account_id": "redacted",
"cms_user_id": "",
"created_at": "2020-12-07T02:59:21Z",
"dept": "",
"email": "redacted",
"first_name": "Update First Name",
"group_ids": [
"j-cS5lkvQ1KAGiKDjG_LOA"
],
"id": "redacted",
"login_types": [
99
],
"personal_meeting_url": "https://zoom.us/j/8560425100",
"phone_number": "+null ",
"pmi": 8560425100,
"role_id": "2",
"role_name": "Member",
"status": "active",
"timezone": "",
"type": 2,
"use_pmi": false,
"verified": 1
}
Then do another GET
on the same user. Now host key is blank:
{
"account_id": "redacted",
"cms_user_id": "",
"created_at": "2020-12-07T02:59:21Z",
"dept": "",
"email": "redacted",
"first_name": "Update First Name",
"group_ids": [
"j-cS5lkvQ1KAGiKDjG_LOA"
],
"host_key": "",
"id": "redacted",
"im_group_ids": [],
"jid": "",
"job_title": "",
"language": "",
"last_name": "",
"location": "",
"login_types": [
99
],
"personal_meeting_url": "https://zoom.us/j/8560425100",
"phone_number": "+null ",
"pmi": 8560425100,
"role_id": "2",
"role_name": "Member",
"status": "active",
"timezone": "",
"type": 2,
"use_pmi": false,
"verified": 1
}
Screenshots (If applicable)
If applicable, add screenshots to help explain your problem.
Additional context
Everything seemed to be working fine prior to today, but now the host key is missing after an update.