This example demonstrates the following:
Request
| Method | URL |
|---|---|
| PUT | /ws/v12/interaction/activity/changecustomer |
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"
xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/interaction/customer"
xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/interaction/contactperson"
xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint">
<activity id="1000">
<customer>
<ns2:contactPersons>
<ns3:contactPerson>
<ns3:contactPoints>
<ns4:contactPoint id="1000">
</ns4:contactPoint>
</ns3:contactPoints>
</ns3:contactPerson>
</ns2:contactPersons>
</customer>
</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/changecustomer |
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": "1000",
"customer": {
"contactPersons": {
"contactPerson": [
{
"contactPoints": {
"contactPoint": [
{
"id": "1000"
}
]
}
}
]
}
}
}
]
} 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/changecustomer |
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"
xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/interaction/customer"
xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/interaction/contactperson"
xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint">
<activity id="1000">
<customer>
<ns2:contactPersons>
<ns3:contactPerson>
<ns3:contactPoints>
<ns4:contactPoint id="1000">
</ns4:contactPoint>
</ns3:contactPoints>
</ns3:contactPerson>
</ns2:contactPersons>
</customer>
</activity>
<activity id="1001">
<customer>
<ns2:contactPersons>
<ns3:contactPerson>
<ns3:contactPoints>
<ns4:contactPoint id="1001">
</ns4:contactPoint>
</ns3:contactPoints>
</ns3:contactPerson>
</ns2:contactPersons>
</customer>
</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/changecustomer |
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": "1000",
"customer": {
"contactPersons": {
"contactPerson": [
{
"contactPoints": {
"contactPoint": [
{
"id": "1000"
}
]
}
}
]
}
}
},
{
"id": "1001",
"customer": {
"contactPersons": {
"contactPerson": [
{
"contactPoints": {
"contactPoint": [
{
"id": "1001"
}
]
}
}
]
}
}
}
]
} 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 folowing:
Request
| Method | URL |
|---|---|
| PUT | /ws/v12/interaction/activity/changecustomer |
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"
xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/interaction/customer"
xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/interaction/contactperson"
xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint">
<activity id="1000">
<customer>
<ns2:contactPersons>
<ns3:contactPerson>
<ns3:contactPoints>
<ns4:contactPoint id="1000">
</ns4:contactPoint>
</ns3:contactPoints>
</ns3:contactPerson>
</ns2:contactPersons>
</customer>
</activity>
<activity id="1001">
<customer>
<ns2:contactPersons>
<ns3:contactPerson>
<ns3:contactPoints>
<ns4:contactPoint id="1000">
</ns4:contactPoint>
</ns3:contactPoints>
</ns3:contactPerson>
</ns2:contactPersons>
</customer>
</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/changecustomer |
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": "1000",
"customer": {
"contactPersons": {
"contactPerson": [
{
"contactPoints": {
"contactPoint": [
{
"id": "1000"
}
]
}
}
]
}
}
},
{
"id": "1001",
"customer": {
"contactPersons": {
"contactPerson": [
{
"contactPoints": {
"contactPoint": [
{
"id": "1000"
}
]
}
}
]
}
}
}
]
} Response:
HTTP/1.1 204 No Content
Response headers
| Name | Value |
|---|---|
| X-egain-session | current session ID |
| Content-Type | application/json |