This page was last edited on February 15, 2024, at 19:11.
Comments or questions about this documentation? Contact us for support!
This operation is part of the UCS Integration with Voice API section of the Web Services API.
This operation completes the call.
Request URL | /api/v2/ucs/interactions/{interactionId} |
---|---|
HTTP method | POST |
Required features | One of the following:
|
Parameter | Value |
---|---|
operationName | SetCallCompleted |
callDuration | The duration of the call. |
userData | The map of attached data to be saved. |
POST /api/v2/ucs/interactions/{interactionId}
{
"operationName": "SetCallCompleted",
"callDuration": 15,
"userData": {"key1":"value1","key2":"value2"}
}
{
"statusCode": 0,
"referenceId": 123
}
{
"referenceId": 123,
"messageType": "UcsOperationResponse",
"success": true
}
{
"referenceId": 123,
"messageType": "UcsOperationResponse",
"success": false,
"errorMessage": "UCS request failed"
}