Error when testing API

Hello Guys, I present a problem since I am currently validating a genesys API, in Postman, to be able to update the status of the call, from salesforce, to a disconnected state. The problem is that when testing, postman gives me the following errors.

The configuration I tested with is:
AUTORIZATION
TYPE: OAUTH 2.0
HEADER PREFIX: BEARER
GRAND TYPE: CLIENT CREDENTIALS
ACCESS TOKEN URL: https://login.mypurecloud.com/oauth/token
CLIENT ID: XX
CLIENT SECRET: XX
SCOPE: (EMPTY)
CLIENT AUTHENTICATION: SEND CLIENT CREDENCIALS IN BODY
HEADERS
CONTENT-TYPE: APPLICATION/JSON

BODY: {"state": "disconnected"}
API: https://api.mypurecloud.com/api/v2/conversations/calls/c090cbe9-d930-4a55-b20f-aac2b178c6ba/participants/b7d4871d-274c-41f3-bb8c-4164c326b338
METHOD: PATCH

The error message is clear: client credentials cannot be used for requests to that resource. You must use any of the OAuth grants that are not client credentials to authorize the app as your user.

Hello Tim, thank you for your response, now I have tried to find some information that will guide me to achieve a solution, but the truth is, I have not found it. You could guide me, as an expert, on what step should be followed, or give me some document that could help me. I would really appreciate it a lot.

You can find documentation on authorization here: https://developer.genesys.cloud/authorization/platform-auth/

Great!, thank you so much

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