Genesys Engage on-premises

 View Only
Discussion Thread View
  • 1.  GWS Rest API

    Posted 09-11-2020 10:16
    Hello

    I'm trying to add an agent to an agent group via the GWS Rest api

    Using: 
    PUT Request
    /api/v2/platform/configuration/agent-groups


    {
    "delta-agent-group":{
    "addedagentDBIDs":[
    {
    "DBID":"16068"
    }
    ],
    "CfgDeltaGroup":{
    "CfgGroup":{
    "DBID":"21627"
    }
    }
    }
    }


    It returns statusCode = 0, but the agent is never added in the agent group.
    #Unsure/Other


  • 2.  RE: GWS Rest API

    GENESYS
    Posted 09-14-2020 02:30
    Edited by Jerome Saint-Marc 09-14-2020 02:32
    Hello,

    Please try with this (comma separated list of DBIDs in the addedAgentDBIDs array - no structure/object containing a "DBID" attribute).

    PUT api/v2/platform/configuration/agent-groups
    Authorization: Basic xxx
    Content-Type: application/json
    {
        "delta-agent-group":{
            "addedAgentDBIDs":[
                "16068"
            ],
            "CfgDeltaGroup":{
                "CfgGroup":{
                    "DBID":"21627"
                }
            }
        }
    }

    Regards,


    ------------------------------
    Jerome Saint-Marc
    Genesys - Employees
    ------------------------------



  • 3.  RE: GWS Rest API

    Posted 09-14-2020 11:25
    Thank you!

    ------------------------------
    Christina
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources