Error in data action

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": {
"attrib_fromUser":${input.attribFromUser},
"attrib_ruriDomain":${input.attribRuriDomain}
}
}

Regards
Garima.

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

Thanks Jason,

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

Regards
Garima.

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.

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

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.