Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Error in data action

    Posted 06-05-2025 19:02

    garimabalodi | 2023-04-10 07:59:21 UTC | #1

    Hi Forum ,

    I am using a data action , trying to patch attributes to a conversation. But it fails with below message . What should be done to correct this :- 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":"This request requires a user context. Client credentials cannot be used for requests to this resource.","code":"not.a.user","status":400,"contextId":"3c919a4f-abd4-49f1-b8e4-1e9a0114ef8f","details":[],"errors":[]} [57285f1b-ea46-4f0c-8c85-46ede963d6d8]

    Data action Details :- req: PATCH /api/v2/conversations/calls/${input.conversationId}/participants/${input.participantId}

    request body template : { "attributes": { "attribfromUser":${input.attribFromUser}, "attribruriDomain":${input.attribRuriDomain} } }

    Regards Garima.


    Jason_Mathison | 2023-04-10 12:38:26 UTC | #2

    Hi Garima,

    Unfortunately it is currently not possible to use some Genesys Cloud APIs with Data Actions, due to the data action running with an OAuth Client Credential instead of as a user.

    There is currently an idea open that you can vote for and add any additional use cases you may have: https://genesyscloud.ideas.aha.io/ideas/DIG-I-1121

    --Jason


    garimabalodi | 2023-04-10 12:41:23 UTC | #3

    Thanks Jason,

    is there a way to check , which APIs cannot be used with Data Actions 7?

    Regards Garima.


    tim.smith | 2023-04-10 15:34:22 UTC | #4

    garimabalodi, post:3, topic:19370
    is there a way to check , which APIs cannot be used with Data Actions 7?

    You can check to see if the endpoint will work in a data action by making the request manually using the client credentials you'll be using with the data action. There is not a list of which endpoints are compatible with data actions.


    Jason_Mathison | 2023-04-10 15:39:32 UTC | #5

    You could submit an idea to https://genesyscloud.ideas.aha.io/ideas around this issue.


    system | 2023-05-11 15:39:45 UTC | #6

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