This example demonstrates the following:
Request
| Method | URL | 
|---|---|
| PUT | /ws/v12/interaction/activity/pick | 
Request headers
| Name | Value | 
|---|---|
| X-egain-session | Valid session ID | 
| Accept | application/xml | 
| Content-Type | application/xml | 
| Accept-Language | en-US | 
 Request body:  
 
<?xml version="1.0" encoding="UTF-8"?>
<activities xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity">
   <activity id="1217">
      <lastModified date="2014-11-24T09:09:08.000Z" />
   </activity>
</activities> Response:  
 HTTP/1.1 204 No Content
Response headers
| Name | Value | 
|---|---|
| X-egain-session | current session ID | 
| Content-Type | application/xml | 
Request
| Method | URL | 
|---|---|
| PUT | /ws/v12/interaction/activity/pick | 
Request headers
| Name | Value | 
|---|---|
| X-egain-session | Valid session ID | 
| Accept | application/json | 
| Content-Type | application/json | 
| Accept-Language | en-US | 
 Request body:  
 
{
  "activity": [{
    "id": "1217",
    "lastModified": {
      "date": "2014-11-24T09:09:08.000Z"
    }
  }]
} Response:  
 HTTP/1.1 204 No Content
Response headers
| Name | Value | 
|---|---|
| X-egain-session | current session ID | 
| Content-Type | application/json | 
 
This example demonstrates the following:
Request
| Method | URL | 
|---|---|
| PUT | /ws/v12/interaction/activity/pick?unpin=yes | 
Request headers
| Name | Value | 
|---|---|
| X-egain-session | Valid session ID | 
| Accept | application/xml | 
| Content-Type | application/xml | 
| Accept-Language | en-US | 
 Request body:  
 
<?xml version="1.0" encoding="UTF-8"?>
<activities xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity">
   <activity id="1217">
      <lastModified date="2014-11-24T09:09:08.000Z" />
   </activity>
   <activity id="1220">
      <lastModified date="2014-12-20T09:16:40.000Z" />
   </activity>
</activities> Response:  
 HTTP/1.1 204 No Content
Response headers
| Name | Value | 
|---|---|
| X-egain-session | current session ID | 
| Content-Type | application/xml | 
Request
| Method | URL | 
|---|---|
| PUT | /ws/v12/interaction/activity/pick?unpin=yes | 
Request headers
| Name | Value | 
|---|---|
| X-egain-session | Valid session ID | 
| Accept | application/json | 
| Content-Type | application/json | 
| Accept-Language | en-US | 
 Request body:  
 
{
  "activity": [
    {
      "id": "1217",
      "lastModified": {
        "date": "2014-11-24T09:09:08.000Z"
      }
    },
    {
      "id": "1220",
      "lastModified": {
        "date": "2014-12-20T09:16:40.000Z"
      }
    }
   ]
} Response:  
 HTTP/1.1 204 No Content
Response headers
| Name | Value | 
|---|---|
| X-egain-session | current session ID | 
| Content-Type | application/json |