mk_telephony | 2018-08-18 01:36:18 UTC | #1
Is there a way to auto-accept the call via API?
According to: https://developer.mypurecloud.com/forum/t/set-autoanswer-via-api/2504
https://developer.mypurecloud.com/forum/t/voicemail-and-auto-answer-settings-for-a-user/1217
The answer was no, but has that since changed?
Manually setting this for every agent via: https://help.mypurecloud.com/articles/turn-on-auto-answer-for-agents/ is arduous.
I noticed that the user object has a field acdAutoAnswer and we should be able to update that field with a patch, but I get a 409 every time I try to set it:
curl -X PATCH -H "Content-Type: application/json" -H "Authorization: bearer <INSERT AUTH TOKEN>" -d '{ "version": 2, "acdAutoAnswer": false }' "https://api.mypurecloud.com/api/v2/users/userID"
Any help on being able to toggle this via the API would be appreciated.
andygunther | 2018-08-19 16:45:37 UTC | #2
I'm not sure if it's been exposed in the public API yet. I did work out how to do it with the v1 private API, by using Fiddler to watch what happens when you do it in Admin. It was a pain to sort out (I got some help from people smarter than me), but it works the last time I checked.
I never did sort out enabling Voicemail.
We have been considering productizing the import tool that we wrote for this and various other settings into a re-usable web site. If you'd be interested in having us help you get something together here that can be used until it's available in the API, please ping me via email at agunther@avtex.com.
Thanks!
tim.smith | 2018-08-20 14:19:02 UTC | #3
A 409 response typically means the version property is incorrect. Be sure to send the current version of the entity you're updating. You can also set the autoanswer setting for multiple users using PATCH /api/v2/users/bulk.
tim.smith | 2018-08-20 14:19:34 UTC | #4
andygunther, post:2, topic:3391
I never did sort out enabling Voicemail.
It's controlled by permissions now.
system | 2018-09-20 14:26:20 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 3391