Legacy Dev Forum Posts

 View Only

Sign Up

Correct API for Wrapup code update

  • 1.  Correct API for Wrapup code update

    Posted 06-05-2025 18:22

    Santhosh_Koroth | 2022-06-22 20:11:48 UTC | #1

    Hi All,

    We are trying to build custom script and not able find the exact API to update Wrapup code. Please provide the exact API URL and body to update the warpup code.

    Regards, Santhosh koroth +4915781288745


    tim.smith | 2022-06-22 20:20:12 UTC | #2

    PATCH /api/v2/conversations/{conversationId}/participants/{participantId} using the wrapup property


    Santhosh_Koroth | 2022-06-24 10:32:13 UTC | #3

    Hi Tim, On the Genesys developer tool explorer I am not able to find the exact API to test from there. When I tried from Data actions I am getting below error.

    8. Execute: The request could not be understood by the server due to malformed syntax.

    • REST call for action execute failed. Message: Request to backend service failed. Response from web service: {"message":"Failed to update properties on conversation participant.","code":"conversation.participant.update.invalid","status":400,"contextId":"d7ae7317-a9b2-47ca-89fd-cadd4c2c254a","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"}]}]} [335822dc-6ec5-40f9-8b9d-f283271d6c65]

    On Oauth I have given the Master admin and developer role access even though I am getting above error. Could you please help here.

    Regards, Santhosh


    tim.smith | 2022-06-24 12:55:20 UTC | #4

    You can't update the wrap up code using client credentials. You must authorize your application using a user-based OAuth flow (any of them but client credentials). This means you cannot do this from a data action.


    Santhosh_Koroth | 2022-06-24 13:19:12 UTC | #5

    Hi Tim,

    Thank you for the update, I want to update the wrapup code from custom script page so is there any possible way fro that.

    Regards, Santhosh Koroth


    tim.smith | 2022-06-24 13:23:06 UTC | #6

    Yes, you can write an application that authorizes using a user-based OAuth flow (any of them but client credentials). Then embed that application in the script.


    system | 2022-07-25 13:23:47 UTC | #7

    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: 15276