This example demonstrates the following:
Request
| Method | URL |
|---|---|
| GET | /ws/v12/interaction/activity/1224/attachment/1011 |
Request headers
| Name | Value |
|---|---|
| X-egain-session | Valid session ID |
| Accept | application/xml |
| Accept-Language | en-US |
Response
HTTP/1.1 200 OK
Response headers
| Name | Value |
|---|---|
| X-egain-session | current session ID |
| Content-Type | application/xml |
Response body
<?xml version="1.0" encoding="UTF-8"?>
<attachments xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment">
<attachment id="1011">
<link rel="self" href="/system/ws/v12/interaction/activity/1224/attachment/1011" />
<fileName>Gift Coupon.jpg</fileName>
<contentType>image/pjpeg</contentType>
<size>172276</size>
<encodingType>Base 64</encodingType>
<isBlocked>false</isBlocked>
</attachment>
</attachments>
Request
| Method | URL |
|---|---|
| GET | /ws/v12/interaction/activity/1224/attachment/1011 |
Request headers
| Name | Value |
|---|---|
| X-egain-session | Valid session ID |
| Accept | application/json |
| Accept-Language | en-US |
Response
HTTP/1.1 200 OK
Response headers
| Name | Value |
|---|---|
| X-egain-session | current session ID |
| Content-Type | application/json |
Response body
{
"attachment": {
"id": "1011",
"link": {
"rel": "self",
"href": "/system/ws/v12/interaction/activity/1224/attachment/1011"
},
"fileName": "Gift Coupon.jpg",
"contentType": "image/pjpeg",
"size": "172276",
"encodingType": "Base 64",
"isBlocked": "false"
}
}
This example demonstrates the following:
Request
| Method | URL |
|---|---|
| GET | /ws/v12/interaction/activity/1224/attachment/1011?$attribute=contentUrl |
Request headers
| Name | Value |
|---|---|
| X-egain-session | Valid session ID |
| Accept | application/xml |
| Accept-Language | en-US |
Response
HTTP/1.1 200 OK
Response headers
| Name | Value |
|---|---|
| X-egain-session | current session ID |
| Content-Type | application/xml |
Response body
<?xml version="1.0" encoding="UTF-8"?>
<attachments xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment">
<attachment id="1011">
<link rel="self" href="/system/ws/v12/interaction/activity/1224/attachment/1011" />
<fileName>Gift Coupon.jpg</fileName>
<contentType>image/pjpeg</contentType>
<size>172276</size>
<encodingType>Base 64</encodingType>
<isBlocked>false</isBlocked>
<contentUrl>/system/ws/internal/stream/activity/3535....3344</contentUrl>
</attachment>
</attachments>
Request
| Method | URL |
|---|---|
| GET | /ws/v12/interaction/activity/1224/attachment/1011?$attribute=contentUrl |
Request headers
| Name | Value |
|---|---|
| X-egain-session | Valid session ID |
| Accept | application/json |
| Accept-Language | en-US |
Response
HTTP/1.1 200 OK
Response headers
| Name | Value |
|---|---|
| X-egain-session | current session ID |
| Content-Type | application/json |
Response body
{
"attachment": {
"id": "1011",
"link": {
"rel": "self",
"href": "/system/ws/v12/interaction/activity/1224/attachment/1011"
},
"fileName": "Gift Coupon.jpg",
"contentType": "image/pjpeg",
"size": "172276",
"encodingType": "Base 64",
"isBlocked": "false",
"contentUrl": "/system/ws/internal/stream/activity/3535....3344"
}
}
This example demonstrates the following:
Request
| Method | URL |
|---|---|
| GET | /ws/v12/interaction/activity/1224/attachment/1011?$attribute=all |
Request headers
| Name | Value |
|---|---|
| X-egain-session | Valid session ID |
| Accept | application/xml |
| Accept-Language | en-US |
Response
HTTP/1.1 200 OK
Response headers
| Name | Value |
|---|---|
| X-egain-session | current session ID |
| Content-Type | application/xml |
Response body
<?xml version="1.0" encoding="UTF-8"?>
<attachments xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment">
<attachment id="1011">
<link rel="self" href="/system/ws/v12/interaction/activity/1224/attachment/1011" />
<fileName>Gift Coupon.jpg</fileName>
<contentType>image/pjpeg</contentType>
<size>172276</size>
<encodingType>Base 64</encodingType>
<isBlocked>false</isBlocked>
<contentUrl>/system/ws/internal/stream/activity/3535....3344</contentUrl>
</attachment>
</attachments>
Request
| Method | URL |
|---|---|
| GET | /ws/v12/interaction/activity/1224/attachment/1011?$attribute=all |
Request headers
| Name | Value |
|---|---|
| X-egain-session | Valid session ID |
| Accept | application/json |
| Accept-Language | en-US |
Response
HTTP/1.1 200 OK
Response headers
| Name | Value |
|---|---|
| X-egain-session | current session ID |
| Content-Type | application/json |
Response body
{
"attachment": {
"id": "1011",
"link": {
"rel": "self",
"href": "/system/ws/v12/interaction/activity/1224/attachment/1011"
},
"fileName": "Gift Coupon.jpg",
"contentType": "image/pjpeg",
"size": "172276",
"encodingType": "Base 64",
"isBlocked": "false",
"contentUrl": "/system/ws/internal/stream/activity/3535....3344"
}
}