Author Topic: GWS API: How to set Not Ready state with displayName  (Read 1848 times)

Offline newsG

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
GWS API: How to set Not Ready state with displayName
« 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"
}
« Last Edit: March 30, 2022, 10:52:09 AM by nuttakorn »

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 541
  • Karma: 30
Re: GWS API: How to set Not Ready state with displayName
« Reply #1 on: March 30, 2022, 03:37:54 PM »
Try this as the payload:
[code]
{
  "operationName": "NotReady",
  "reasons": "<your reason code>"
}
[/code]

Offline newsG

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: GWS API: How to set Not Ready state with displayName
« Reply #2 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>"
}