Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: eugene on April 10, 2019, 06:10:31 PM

Title: Provision Virtual Queue via Genesys Web Services Platform Configuration API
Post by: eugene on April 10, 2019, 06:10:31 PM
Does anyone have a sample JSON payload sample that outlines the structure needed to create VQ using Genesys Web Services' platform config api?  Many thanks!
Title: Re: Provision Virtual Queue via Genesys Web Services Platform Configuration API
Post by: genesysguru on April 11, 2019, 01:00:20 PM
Hi,

You can create via GAX API by crafting a HTTP POST request (in Postman for example) to {{GAXUrl}}/api/cfg/objects with a JSON body as follows:

{"type":"CfgDN","folderid":"{{folderDBID}}","tenantdbid":"{{tenantDBID}}","number":"{{objectName}}","subtype":"CFGVirtACDQueue","switchdbid":"{{switchDBID}}","association":"","registerall":"CFGDRTrue","name":"{{objectName}}","routetype":"CFGDefault","groupdbid":"0","useoverride":"CFGTrue","override":"","dnloginid":"","switchspecifictype":1,"trunks":0,"contractdbid":"0","sitedbid":"0","state":"CFGEnabled"}


PS: The {{xxxx}} are placeholders e.g. Postman environment variables.

Regards
Craig
Title: Re: Provision Virtual Queue via Genesys Web Services Platform Configuration API
Post by: eugene on April 12, 2019, 02:15:28 PM
thanks guru, the docs don't make it easy to consume.  psdk suggests some attributes are mandatory while others i suppose are optional.  finally was able to get it after arbitrarily added in routeType:

{
"dn": {

  "number":"{{vq}}",
  "tenantDBID":"101",
  "type":"5",
  "switchDBID":"144",
  "state":"1",
  "routeType":"1"
 

}


}
Title: Re: Provision Virtual Queue via Genesys Web Services Platform Configuration API
Post by: genesysguru on April 15, 2019, 08:26:22 PM
Crank up Chome and login to GAX. Select Developer Tools to see request and responses during VQ creation.

Regards
Craig
Title: Re: Provision Virtual Queue via Genesys Web Services Platform Configuration API
Post by: eugene on April 16, 2019, 05:56:55 AM
i don't think it'll quite match up since there's a bit of disparity between using GAX API vs GWS.

Though i must admit this is a darn good hack for those looking to do automated provisioning without GWS installed at their site.