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}
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.
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.