@elisa.zoom In continuation of Updating or searching external contacts with Zoom Phone API - #7 by elisa.zoom
It doesn’t seem like the external contact ID can be used instead of the internally Zoom generated ID to update record.
The following sequence of calls fails:
curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer ${ZOOM_ACCESS_TOKEN}" -d '{"id":"test-NNN", "name":"Test", "description":"Test", "phone_numbers":["+44xxxxxxxx"]}' https://api.zoom.us/v2/phone/external_contacts
Returns {"name":"Test","external_contact_id":"GENERATED_CONTACT_ID"}
where the GENERATED_CONTACT_ID
is not test-NNN
.
Update using the ID field test-NNN
:
curl -X PATCH -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer ${ZOOM_ACCESS_TOKEN}" -d '{"id":"test-NNN", "name":"Test", "description":"Test Patch", "phone_numbers":["+44xxxxxxxx"]}' https://api.zoom.us/v2/phone/external_contacts/test-NNN
Fails with {"code":300,"message":"Validation Failed.","errors":[{"field":"externalContactId","message":"External contact does not exist: test-NNN"}]}
Update with the GENERATED_CONTACT_ID
is successful.