Legacy Dev Forum Posts

 View Only

Sign Up

Error when updating conversation Tags

  • 1.  Error when updating conversation Tags

    Posted 06-05-2025 18:29

    Santiago_Serna | 2024-01-31 08:54:30 UTC | #1

    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


    Santiago_Serna | 2024-01-31 09:51:02 UTC | #2

    Santiago_Serna, post:1, topic:24397
    'https://api.mypurecloud.com/api/v2/conversation

    Solved.

    The problem is that I copy-paste the API url from API Explorer and it was pointing to mypurecloud.com while we are in mypurecloud.ie

    regards


    system | 2024-03-02 09:51:19 UTC | #3

    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: 24397