Update Members
In order to get the call quality metrics in post call analytics the user has to update the members in the call as agent and user

Curl request to update the members in a call

1
curl --location --request POST 'https://streams.marsview.ai/rb/v1/streams/update_call_members' \
2
--header 'Authorization: Bearer <AccessToken>' \
3
--header 'Content-Type: application/json' \
4
--data-raw '{
5
"txnId" : "<txnId of the call>",
6
"members" : [{"agent": <agent channelId>}, {"user" : <user channelId>}]
7
}'
Copied!

Response

The member data is updated if the server responds with a 200 status code and the status is set to True in the JSON response
1
{
2
"status": true,
3
"data": {
4
"status": true,
5
"data": {
6
"status": true,
7
"message": "updated members"
8
}
9
}
10
}
Copied!
Last modified 1mo ago