fransiska.hendra | 2022-05-02 01:58:00 UTC | #1
Hi,
Just wondering if you can help me with advise, I want to use PureCloud API Conversation, this the API function
/api/v2/conversations/calls/{conversationId}/participants/{participantId}
And I created a callData Action with following settings:
 |
 |
And when i run test, i got following error
here is detail error { "message": "The request could not be understood by the server due to malformed syntax.", "code": "bad.request", "status": 400, "messageParams": {}, "contextId": "5b224d02-b5bc-4447-ab62-f9ca3abab5d8", "details": [ { "errorCode": "ACTION.REMOTEENDPOINT" } ], "errors": [ { "message": "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\":\"8d0927f3-f22a-4ae4-9d41-2cf8b69f3aee\",\"details\":[],\"errors\":[]} [5b224d02-b5bc-4447-ab62-f9ca3abab5d8]", "code": "BADREQUEST", "status": 400, "messageParams": {}, "details": [], "errors": [] } ] }
Could you please advise, what is wrong step ?
thank you Fransiska
jacobshaw | 2022-05-02 19:49:46 UTC | #2
Hi @fransiska.hendra This API requires a user context. Data actions cannot make requests to it since they are configured with client credentials.. See this post for more: https://developer.genesys.cloud/forum/t/automate-callback-number-dial/10547
fransiska.hendra | 2022-05-02 21:50:32 UTC | #3
Thanks Jacob for advise.
Means need to be done through code SDK, there's no way without code.
Fransiska
system | 2022-06-02 21:50:58 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: 14536