Exiting the Function of Answering Calls on a Mobile Phone (logout)
Scenario
This interface is invoked to sign out of an offline agent when the Shift Mobile function is used.
Method
POST
URI
https://Domain name/apiaccess/rest/cc-management/v1/offline/agent/logout
Request Description
No. |
Parameter |
Type |
Mandatory or Not |
Description |
---|---|---|---|---|
1 |
X-APP-KEY |
String |
No |
App key, which is the user ID. Contact operations personnel to obtain the app key. |
2 |
Authorization |
String |
Yes |
Authentication field. The format is Bearer {Value of AccessToken returned by the tokenByAkSk interface}. (A space is required after Bearer.) |
No. |
Parameter |
Type |
Mandatory or Not |
Description |
---|---|---|---|---|
1.1 |
workNo |
Number |
Yes |
Employee ID of an agent. |
Response Description
- Status code: 200
Table 3 Response body parameters No.
Parameter
Type
Mandatory or Not
Description
1.1
returnCode
String
Yes
Operation result. The value 0 indicates success, and other values indicates failure.
1.2
description
String
No
Prompt message.
- Status code: 401
Authentication failed.
- Status code: 404
The requested resource does not exist.
- Status code: 500
Internal server error.
Error Codes
None
Example
Request header:
Content-Type:application/json X-APP-KEY:********************* Authorization:Bearer *********************
Request parameters:
{"workNo":107}
Response parameters:
{ "returnCode": "0", "description": "success" }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot