Definitely ask any more question in the develop forum, but I got this to work.
To find out if there are any pending callbacks, I did a post to the /api/v2/analytics/conversations/details/query endpoint with this body:
{{ "interval": "2018-11-16T05:00:00.000Z/2018-11-17T05:00:00.000Z", "order": "desc", "orderBy": "conversationStart", "paging": { "pageSize": 50, "pageNumber": 1 }, "segmentFilters": [{ "type": "and", "predicates": [{ "dimension": "mediaType", "value": "callback" }] }, { "type": "and", "predicates": [{ "dimension": "ani", "value": "tel:+13175556666" }] }, { "type": "and", "clauses": [{ "type": "and", "predicates": [{ "dimension": "purpose", "operator": "matches", "value": "acd" }, { "dimension": "segmentEnd", "operator": "notExists" }] }] }], "evaluationFilters": []}That finds a callback for the phone number tel:+13175556666, and that is still waiting in queue.
To disconnect the callback, patch to the
api/v2/conversations/callbacks/{conversationId}/participants/{participantId} endpoint with this body:
{{ "state":"DISCONNECTED"}
where participantId is the id of the callback participant.
------------------------------
Melissa Bailey
Genesys - Employees
------------------------------
Original Message:
Sent: 11-16-2018 16:45
From: George Ganahl
Subject: Caller Cancel Callback
I think you would be best off opening a discussion on https://developer.mypurecloud.com/forum/ . They can give you more specific help on using the API in conjunction with PureCloud Architect and a web services data action integration to PureCloud.
I don't see anything simple in the API documentation that looks like it can be used directly, but someone on the development side might be able to think of a way.
------------------------------
George Ganahl CCXP, GCA
Principal Program Manager
Genesys
------------------------------