Unsubscribe from Workbin Notifications
This operation is part of the Workbins API section of the Web Services API.
Overview
Agent can unsubscribe from a workbin's CometD notifications.
Samples
Unsubscribe from Workbin Notifications
| Request URL | /api/v2/me/workbins/{workbinId}
 OR  | 
|---|---|
| HTTP Method | POST | 
| Required Features | api-multimedia | 
Request
POST api/v2/me/workbins/aee812a5-7396-4dd9-b180-230f1c1fb085
{
  "operationName": "Unsubscribe"
}HTTP Response
{
   "statusCode": 0,
   "referenceId": 105
}CometD Response
{
    "stateResource": "Unsubscribed",
    "id': "aee812a5-7396-4dd9-b180-230f1c1fb085",
    "messageType': "WorkbinSubscriptionStateChangeMessage"
}Unsubscribe from Multiple Workbin Notifications
| Request URL | /api/v2/me/workbins?workbinIds=workbinId1,workbinId2,...
 OR  | 
|---|---|
| HTTP Method | POST | 
| Required Features | api-multimedia | 
Request
POST /api/v2/me/workbins?workbinIds=aee812a5-7396-4dd9-b180-230f1c1fb085,a91ee1c2-9cfe-43b6-8193-fd39cd89d5b4
{
  "operationName": "Unsubscribe"
}HTTP Response
{
    "statusCode": 0,
    "referenceIds": {
        "a91ee1c2-9cfe-43b6-8193-fd39cd89d5b4": 147,
        "aee812a5-7396-4dd9-b180-230f1c1fb085": 146
    }
}CometD Responses
{
    "stateResource": "Unsubscribed",
    "id': "aee812a5-7396-4dd9-b180-230f1c1fb085",
    "messageType': "WorkbinSubscriptionStateChangeMessage"
}{
    "stateResource": "Unsubscribed",
    "id': "a91ee1c2-9cfe-43b6-8193-fd39cd89d5b4",
    "messageType': "WorkbinSubscriptionStateChangeMessage"
}Unsubscribe from Workbin Notifications by User
| Request URL | /api/v2/users/{userId}/workbins/{workbinId} | 
|---|---|
| HTTP Method | POST | 
| Required Features | api-multimedia | 
Request
POST api/v2/users/e6f2ad1b26ea4e9b8dd907eabe167522/workbins/aee812a5-7396-4dd9-b180-230f1c1fb085
{
  "operationName": "Unsubscribe"
}HTTP Response
{
   "statusCode": 0,
   "referenceId": 156
}CometD Response
{
    "workbinUserId": "e6f2ad1b26ea4e9b8dd907eabe167522",
    "stateResource": "Unsubscribed",
    "id": "aee812a5-7396-4dd9-b180-230f1c1fb085",
    "messageType": "WorkbinSubscriptionStateChangeMessage"
}Unsubscribe from Multiple Workbin Notifications by User
| Request URL | /api/v2/users/{userId}/workbins?workbinIds=workbinId1,workbinId2,... | 
|---|---|
| HTTP Method | POST | 
| Required Features | api-multimedia | 
Request
POST /api/v2/users/e6f2ad1b26ea4e9b8dd907eabe167522/workbins?workbinIds=aee812a5-7396-4dd9-b180-230f1c1fb085,
aee812a5-7396-4dd9-b180-230f1c1fb085
{
  "operationName": "Unsubscribe"
}HTTP Response
{
    "statusCode": 0,
    "referenceIds": {
        "a91ee1c2-9cfe-43b6-8193-fd39cd89d5b4": 166,
        "aee812a5-7396-4dd9-b180-230f1c1fb085": 165
    }
}CometD Response
{
    "stateResource": "Unsubscribed",
    "id': "aee812a5-7396-4dd9-b180-230f1c1fb085",
    "messageType': "WorkbinSubscriptionStateChangeMessage"
}{
    "stateResource": "Unsubscribed",
    "id': "a91ee1c2-9cfe-43b6-8193-fd39cd89d5b4",
    "messageType': "WorkbinSubscriptionStateChangeMessage"
} This page was last edited on October 31, 2023, at 13:32.
                
                
                
                
                
                
		
		
			Comments or questions about this documentation? Contact us for support! 
		
                
                                
            