This API can be used by the logged in users to pull activities from queues. Unlike the Pick operation (where the user chooses specific activities to pick for work), the Pull operation pulls and assigns activities to the user according to the "Pull Options" configured in the Agent Console.
Calltrackand Chat type of activities cannot be pulled using this API.
For this API to execute successfully:
As part of completing this request:
Method | URL | Description |
---|---|---|
PUT | /ws/v12/interaction/activity/pull | Pull activities in status "in queue waiting to be assigned". |
Authentication is required. The client must be logged in to call this API. Each API request must contain X-egain-session request header returned by Login API.
The logged in user must have the following licenses:
Name | Description | Allowed values | Default value |
---|---|---|---|
X-egain-session | Session ID obtained from Login API response header | N/A | N/A |
Accept | Content type accepted by the client. Used for success and error response both. | application/xml or application/json | N/A |
Accept-Language | Language locale accepted by client (used for locale specific fields in resource representation and in error responses) | Supported 'Accept-Language' header codes | default system language |
Request body is not allowed.
None
None
Name | Description | Possible values |
---|---|---|
X-egain-session | ID of the current user session | N/A |
Content-Type | Media type of response body | application/xml or application/json |
Response body will be present if the request is successful and at least one activity is pulled. The response body can be in either XML or JSON format.
'activities' element will be present in the response body. At least one 'activity' element will be present in the 'activities' element. Each 'activity' element will contain the following elements:
Name | Description |
---|---|
id | ID of the activity pulled. |
link | Self link of the activity pulled. |
200 - OK
204 - No Content
400 - Bad Request
401 - Unauthorized
403 - Forbidden
406 - Not Acceptable
500 - Internal server error
Example 1 - Pull activities when activities are available to pull
Example 2 - Pull activities when no activities are available to pull