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

Offline nuttakorn

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
GWS API: How to set Not Ready state with displayName
« on: March 30, 2022, 07:49:49 PM »
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, 07:52:09 PM by nuttakorn »

Offline hsujdik

  • Hero Member
  • *****
  • Posts: 501
  • Karma: 23
Re: GWS API: How to set Not Ready state with displayName
« Reply #1 on: March 31, 2022, 12:37:54 AM »
Try this as the payload:
Code: [Select]
{
  "operationName": "NotReady",
  "reasons": "<your reason code>"
}

Offline nuttakorn

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: GWS API: How to set Not Ready state with displayName
« Reply #2 on: March 31, 2022, 12:44:17 PM »
Bad luck. I can use like this but it applies only to voice channels but not to other media.

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