Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: newsG on March 30, 2022, 10:49:49 AM

Title: GWS API: How to set Not Ready state with displayName
Post by: newsG on March 30, 2022, 10:49:49 AM
Hello,

Does anyone know how to set agent status to Not Ready with displayName as parameter only accepts for operationName?

URL: /api/v2/users/{userId}/channels/{channelId}
Parameter: operationName

For example,
{
"operationName": "NotReady"
}
Title: Re: GWS API: How to set Not Ready state with displayName
Post by: hsujdik on March 30, 2022, 03:37:54 PM
Try this as the payload:
[code]
{
  "operationName": "NotReady",
  "reasons": "<your reason code>"
}
[/code]
Title: Re: GWS API: How to set Not Ready state with displayName
Post by: newsG on March 31, 2022, 03:44:17 AM
Bad luck. I can use like this but it applies only to voice channels but not to other media.

{
    "operationName": "<my reason code>"
}