benjamin.Pir | 2022-02-10 14:20:40 UTC | #1
Hello All ,
When I disconnect a callback interaction, how can I wrapup code from the following api: PATCH /api/v2/conversations/callbacks/{conversationId}
Should we update the wrapup field only at the level of participants>wrapup>code and name? Or also on participants>callback>wrapup>code and name?
Example :
{ "participants": [ { "id": "", "startTime": "", "endTime": "", "connectedTime": "", "name": "", "userUri": "", "userId": "", "externalContactId": "", "externalOrganizationId": "", "queueId": "", "groupId": "", "teamId": "", "queueName": "", "purpose": "", "participantType": "", "consultParticipantId": "", "address": "", "ani": "", "aniName": "", "dnis": "", "locale": "", "wrapupRequired": true, "wrapupPrompt": "timeout", "wrapupTimeoutMs": 0, "wrapupSkipped": true, "wrapup": {
- "code": "aa808d95-d1b9-4004-ad52-ebbf0f294ed6",*
- "name": "un-callable",*
"notes": "", "tags": [], "durationSeconds": 0, "endTime": "", "provisional": true }, "attributes": { "test": "test" }, "callbacks": [ { "state": "disconnected", "id": "", "segments": [ { "startTime": "", "endTime": "", "type": "", "howEnded": "", "disconnectType": "" } ], "direction": "outbound", "held": true, "disconnectType": "transfer.conference", "startHoldTime": "", "voicemail": { "id": "", "uploadStatus": "none" }, "callbackNumbers": [], "callbackUserName": "", "scriptId": "", "externalCampaign": true, "skipEnabled": true, "timeoutSeconds": 0, "startAlertingTime": "", "connectedTime": "", "disconnectedTime": "", "callbackScheduledTime": "", "automatedCallbackConfigId": "", "provider": "", "peerId": "", "wrapup": {
- "code": "aa808d95-d1b9-4004-ad52-ebbf0f294ed6",*
- "name": "un-callable",*
"notes": "", "tags": [], "durationSeconds": 0, "endTime": "", "provisional": true }, "afterCallWork": { "startTime": "", "endTime": "", "state": "notApplicable" }, "afterCallWorkRequired": true, "callerId": "", "callerIdName": "" } ] } ], "state": "disconnected" }
Thank you in advance for your help.
Best Regards, Benjamin.
system | 2022-03-11 19:37:47 UTC | #2
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: 13515