Troy | 2017-03-02 12:22:52 UTC | #1
We are looking for a way to modify the Scheduled Callback Time on an existing scheduled callback or to at least allow us to delete an existing scheduled callback so we can re-load with a new time. Ideally not using PATCH as we are calling the API from Salesforce. I cannot see any API that allows this.
anon28066628 | 2017-03-02 15:39:12 UTC | #2
Hi Troy, I haven't seen an endpoint that will do this in one step. The scheduled callbacks dashboard in PureCloud allows cancellation of callbacks and uses this call:
PATCH /api/v2/conversations/callbacks/{conversationId} { "state": "disconnected" }
You can then add another callback participant to the conversation:
POST /api/v2/conversations/{conversationId}/participants/{participantId}/callbacks { "queueId": "10181a37-7338-4b34-9a4c-ce4a250df289", "callbackUserName": "Callee McGee", "callbackNumbers": ["+13173333333"], "callbackScheduledTime": "2017-03-08T17:00:00Z" }
The participantId in the address is the customer / external participant id.
This leaves the original callback as a 'disconnected' participant and the new callback added in the 'scheduled' state. You may need / want to provide a scriptId as well (see documentation).
Edit: Here's the before-and-after of a test conversation. It looks like the default scriptId is used if you don't specify one, so it's optional.
http://wikisend.com/download/441596/callback.zip
system | 2017-08-28 19:32:32 UTC | #3
This post was migrated from the old Developer Forum.
ref: 994