Zack_Turnbow | 2020-07-22 17:24:49 UTC | #1
We are trying to integrate one of our custom applications that performs the wrap up code functionality. During the call, we can open our tool with no issues. The problem we are experiencing is updating the wrap up code for the conversation once the call is completed. Here is the response we get when calling /api/v2/conversations/{conversationId}/participants/{participantId} with a body of: { "wrapup": { "code": "c98fcac0-78dc-4123-94bf-ac882383d60e", "name": "Category > Reason > Details", "notes": "Custom Notes", "tags": [ "" ], "durationSeconds": 99, "endTime": "2020-07-16T19:00:44.501Z", "provisional": true }, "state": "disconnected", "recording": true, "muted": true, "confined": true, "held": true, "wrapupSkipped": true }
and a response of: { "message": "Failed to update properties on conversation participant.", "code": "conversation.participant.update.invalid", "status": 400, "details": [], "errors": [ { "message": "Access to Conversation {id} is forbidden.", "code": "not.authorized", "status": 403, "details": [ { "fieldName": "confined" } ] }, { "message": "Access to Conversation {id} is forbidden.", "code": "not.authorized", "status": 403, "details": [ { "fieldName": "held" } ] }, { "message": "Access to Conversation {id} is forbidden.", "code": "not.authorized", "status": 403, "details": [ { "fieldName": "muted" } ] }, { "message": "The participant for this request does not belong to the user making the request.", "code": "conversation.error.user.not.party", "status": 400, "details": [ { "fieldName": "recording" } ] }, { "message": "Access to Conversation {id} is forbidden.", "code": "not.authorized", "status": 403, "details": [ { "fieldName": "wrapupSkipped" } ] } ] }
tim.smith | 2020-07-22 19:48:18 UTC | #2
It looks like you're specifying values for all of those properties. Only include the properties you want to update when making the request.
Zack_Turnbow | 2020-07-23 15:30:36 UTC | #3
Tim,
Thank you. That did the trick. I had to wait a bit to finally update though.
system | 2020-08-23 15:30:39 UTC | #4
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: 8364