Hi there,
I'm trying to set up a tag to a conversation both when conversation is live or in acw time and get an error from the API...
This is the way I'm doing and what I'm getting
-
Set up a Custom Role assigning the permission to
conversation:externalTag:edit -
Set up an oAuth with Client-Credentials grant type with the previous Role assigned to my Division
-
Get a Token for that credentials
-
Run API
curl --location --request PUT 'https://api.mypurecloud.com/api/v2/conversations/58c079de-d916-4210-bfa9-f188022e052e/tags' \*
--header 'Content-Type: application/json'
--header 'Authorization: Bearer d41CU02****'
--data '{
"externalTag": "myExternalTag"
}
'
And get the error
{
"message": "Invalid login credentials.",
"code": "bad.credentials",
"status": 401,
"contextId": "a83dd4c8-798d-45d1-b7d7-c1457f8d5148",
"details": [],
"errors": []
}
Could you please advice which permissions does that role must to have?
PD: I've tried to add lots of permissions (Master Admin, Developer, Admin, etc...) directly to oAuth (not to the role) and the error is the same
Thanks for your help