This example demonstrates the following:
Request
Method | URL |
---|---|
POST | /ws/v12/interaction/activity?searchContactOnAttribute=email.emailAddress |
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"?> <activity xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity" xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/platform" xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/common" xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment" xmlns:ns5="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint"> <department> <ns2:name>Service</ns2:name> </department> <type> <value>task</value> <subtype> <ns3:value>General</ns3:value> </subtype> </type> <subject>Follow up with customer</subject> <customer> <type> <value>individual</value> </type> <contactPersons> <contactPerson> <firstName>Anthony</firstName> <contactPoints> <contactPoint> <type> <value>email</value> <email> <emailAddress>anthonyrogers@gmail.com</emailAddress> </email> </type> </contactPoint> </contactPoints> </contactPerson> </contactPersons> </customer> </activity>
Response
HTTP/1.1 201 Created
Response headers
Name | Value |
---|---|
X-egain-session | current session ID |
Content-Type | application/xml |
Location | /system/ws/v12/interaction/activity/1660 |
Request
Method | URL |
---|---|
POST | /ws/v12/interaction/activity?searchContactOnAttribute=email.emailAddress |
Request headers
Name | Value |
---|---|
X-egain-session | Valid session ID |
Accept | application/json |
Content-Type | application/json |
Accept-Language | en-US |
Request body
{ "department": { "name": "Service" }, "type": { "value": "task", "subtype": { "value": "General" } }, "subject": "Follow up with customer", "customer": { "type": { "value": "individual" }, "contactPersons": { "contactPerson": [ { "firstName": "Anthony", "contactPoints": { "contactPoint": [ { "type": { "value": "email", "email": { "emailAddress": "anthonyrogers@gmail.com" } } } ] } } ] } } }
Response
HTTP/1.1 201 Created
Response headers
Name | Value |
---|---|
X-egain-session | current session ID |
Content-Type | application/json |
Location | /system/ws/v12/interaction/activity/1660 |
This example demonstrates the following:
Request
Method | URL |
---|---|
POST | /ws/v12/interaction/activity?searchContactOnAttribute=home.phone&activityContact=home.phone&createCustomer=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"?> <activity xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity" xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/platform" xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/common" xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment" xmlns:ns5="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint"> <department> <ns2:name>Service</ns2:name> </department> <type> <value>task</value> <subtype> <ns3:value>General</ns3:value> </subtype> </type> <subject>Follow up with customer</subject> <case id="1011" /> <priority>5</priority> <dueDate>2021-03-31T19:00:00.000Z</dueDate> <status> <assigned> <user> <loginId>don</loginId> </user> </assigned> </status> <attachments> <ns4:attachment> <ns4:fileName>logo.gif</ns4:fileName> <ns4:contentType>image/gif</ns4:contentType> <ns4:content><![CDATA[R0lGODlhSwAZAPcAAAAAAP///6m/0czi9MXM0u71+wBwxw53yBF6yxx9ySKDziqEyTON0jiKykSW1kaRy1Wg2lSYzGap3WKezXez4XGlzYi85X+rzpnG6Y2yz6rP7Ju50LvZ8LfG0d3s+Pz8/Pb29vPz8+7u7u3t7erq6ujo6N/f39nZ2dbW1tPT08/Pz8HBwbGxsaKiopWVlYeHh3t7e21tbWFhYVVVVUlJST4+Pv///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AHMUHMiAcw6sCJ+J7VUAIHsPbKDjjjqihwAGBwagAXMSIHgiixSsyAAHQapogAIHMleAh1MGIAF7G5C0AXs2nrVdhQFwYMGUD2b4IXsZYkABmQZAEOaTB3pgQYYFsEffSMuhl6WXzrU4pAEWCMnAgTJSwMGhGBjAAAVXGmDglYFaYECRHizowIXs6ZTndoxtN+UAh5p5aQDNZXhgopNqwCShBjAJAaDOAUhqQIuoOreApuglMMGuu3aXgnNQekjBsBQ4UCSpzjH5IJADDIsgc6y6ylyHZzbXAK7w7flrc6Myh4ADDih64JktBuDAoB6w+OagdRrAqgEZhoueTva9F+J6zk2pAQUZymrhABrQSWqLHkAQqIeTCmnApekagECUdgIoYHsL3IlvcxJUWcCZCKwagAcOcDDAk1Vq0KGkQD7oJ3NujsyeryIJMPF2DVh8MYwvosfAuezRSCJ60KkWwcyw8fnz0fsJwFiEnSLt9HsVMyZ1QAAAOw==]]></ns4:content> </ns4:attachment> </attachments> <payload> <task> <contents> <content> <ns3:type>text</ns3:type> <ns3:value>Shared information on redeeming points of a rewards card.</ns3:value> </content> <content> <ns3:type>html</ns3:type> <ns3:value><![CDATA[<HTML><BODY><H3>Shared information on redeeming points of a rewards card.</H3></BODY></HTML>]]></ns3:value> </content> </contents> </task> </payload> <customAttributes> <ns3:customAttribute> <ns3:attribName>customer_rating</ns3:attribName> <ns3:attribValues> <ns3:attribValue> <ns3:value>5</ns3:value> </ns3:attribValue> </ns3:attribValues> </ns3:customAttribute> </customAttributes> <customer> <type> <value>individual</value> </type> <contactPersons> <contactPerson> <firstName>Anthony</firstName> <salutation>Mr.</salutation> <middleName>Jay</middleName> <lastName>Connors</lastName> <loginId>anthony_connors</loginId> <gender> <value>male</value> </gender> <identification> <type>License</type> <value>PWVVXX125Y</value> </identification> <suffix> <value>jr.</value> </suffix> <initials>AJC</initials> <secretQuestion>What is your place of birth?</secretQuestion> <secretAnswer>Alabama</secretAnswer> <hasDirectMailingConsent>true</hasDirectMailingConsent> <hasDirectCallingConsent>true</hasDirectCallingConsent> <hasHoldingDataConsent>true</hasHoldingDataConsent> <jobTitle>Manager</jobTitle> <employmentStatus> <value>full-time</value> </employmentStatus> <priority>max</priority> <dateOfBirth>1965-02-20T19:00:00.000Z</dateOfBirth> <maritalStatus> <value>married</value> </maritalStatus> <type> <value>Shipping</value> </type> <firstNameFurigana>Anthony</firstNameFurigana> <middleNameFurigana>Jay</middleNameFurigana> <lastNameFurigana>Connors</lastNameFurigana> <startGreeting>Good Morning</startGreeting> <endGreeting>Have a good day</endGreeting> <spouseName>Linda</spouseName> <emergencyContact>55555</emergencyContact> <occupation>Helpdesk</occupation> <incomeLevel>middle</incomeLevel> <educationLevel> <value>post graduate</value> </educationLevel> <race>Caucasian</race> <dependents>5</dependents> <isSmoker>false</isSmoker> <hobbies>singing</hobbies> <interests>singing</interests> <contactOrder>20</contactOrder> <contactPoints> <contactPoint> <type> <value>email</value> <email> <emailAddress>anthonyconnors@gmail.com</emailAddress> </email> </type> </contactPoint> <contactPoint> <type> <value>phone</value> <phone> <type> <value>home</value> </type> <phoneNo>111108</phoneNo> <countryCode>1</countryCode> <areaCode>1</areaCode> <extension>1</extension> <availability> <days> <value>any_day</value> </days> <times> <value>anytime</value> </times> </availability> </phone> </type> </contactPoint> <contactPoint> <type> <value>phone</value> <phone> <type> <value>office</value> </type> <phoneNo>222208</phoneNo> <countryCode>2</countryCode> <areaCode>2</areaCode> <extension>2</extension> <availability> <days> <value>weekdays</value> </days> <times> <value>day</value> </times> </availability> </phone> </type> </contactPoint> <contactPoint> <type> <value>social</value> <social> <type> <value>facebook</value> </type> <socialId>hello_anthony</socialId> </social> </type> </contactPoint> <contactPoint> <type> <value>social</value> <social> <type> <value>twitter</value> </type> <socialId>its_me_anthony</socialId> </social> </type> </contactPoint> <contactPoint> <type> <value>postal</value> <postal> <type> <value>home</value> </type> <address_1>82 Holden Street</address_1> <address_2>Near Walmart</address_2> <city>NY</city> <state>NY</state> <zip>1111</zip> <country>US</country> <region>NA</region> </postal> </type> </contactPoint> <contactPoint> <type> <value>postal</value> <postal> <type> <value>billto</value> </type> <address_1>Madison House</address_1> <address_2>MAdison Ave</address_2> <city>NY</city> <state>NY</state> <zip>1111</zip> <country>US</country> <region>NA</region> </postal> </type> </contactPoint> <contactPoint> <type> <value>website</value> <website> <url>www.hello2Anthony.com</url> </website> </type> </contactPoint> </contactPoints> <customAttributes> <ns3:customAttribute> <ns3:attribName>isprimary</ns3:attribName> <ns3:attribValues> <ns3:attribValue> <ns3:value>y</ns3:value> </ns3:attribValue> </ns3:attribValues> </ns3:customAttribute> </customAttributes> </contactPerson> </contactPersons> <level> <value>Gold</value> </level> <role> <value>Reseller</value> </role> <pin>411014</pin> <howReferred> <value>Partner</value> </howReferred> <industry> <value>Telecom</value> </industry> <marketSegment>mid_market</marketSegment> <entitlements>test_entitlement</entitlements> <customAttributes> <ns3:customAttribute> <ns3:attribName>preferredlang</ns3:attribName> <ns3:attribValues> <ns3:attribValue> <ns3:value>English</ns3:value> </ns3:attribValue> </ns3:attribValues> </ns3:customAttribute> </customAttributes> </customer> </activity>
Response
HTTP/1.1 201 Created
Response headers
Name | Value |
---|---|
X-egain-session | current session ID |
Content-Type | application/xml |
Location | /system/ws/v12/interaction/activity/1661 |
Request
Method | URL |
---|---|
POST | /ws/v12/interaction/activity?searchContactOnAttribute=home.phone&activityContact=home.phone&createCustomer=yes |
Request headers
Name | Value |
---|---|
X-egain-session | Valid session ID |
Accept | application/json |
Content-Type | application/json |
Accept-Language | en-US |
Request body
{ "department": { "name": "Service" }, "type": { "value": "task", "subtype": { "value": "General" } }, "subject": "Follow up with customer", "case": { "id": "1011" }, "priority": "5", "dueDate": "2021-03-31T19:00:00.000Z", "status": { "assigned": { "user": { "loginId": "don" } } }, "attachments": { "attachment": [ { "fileName": "logo.gif", "contentType": "image/gif", "content": "R0lGODlhSwAZAPcAAAAAAP///6m/0czi9MXM0u71+wBwxw53yBF6yxx9ySKDziqEyTON0jiKykSW1kaRy1Wg2lSYzGap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4sCFiRseXNlysICgD5ocSKEjqFElAoEqWLk3IcCHDhAqOM0SwWBnjRVEbNFyYYBEDxkqhL2bMHCgDhlUbNUXEOBjixM6zKXzSoBiz4lKwKma4iCFihdwYK2uCfeGiRlsbL7YKlCHChkuZMg2OQIvW58qBLtyudDFD4tgVHE2YADu48MzIgAWDLexS7NiCi3V2qNBgQYIHGUg6JiiU6OaWgCvaaPpUL9WvWLXS9PoYhmgbIHZOMMC8uYEII2FKfynWo9mRBBY43x477fTvCl/+aCRIQueD7dsfiETPvr379/CbHyBA8gL8Aw0axN/Pv/8EkgQc0N+AEgwQQAAFYIAAfBJwQMGAHdQ3IH8IGBjAAB4cyAF8GgTwIH/qkaTdhOg5sGBzBg6gAHMUHMiAcw6sCJ+J7VUAIHsPbKDjjjqihwAGBwagAXMSIHgiixSsyAAHQapogAIHMleAh1MGIAF7G5C0AXs2nrVdhQFwYMGUD2b4IXsZYkABmQZAEOaTB3pgQYYFsEffSMuhl6WXzrU4pAEWCMnAgTJSwMGhGBjAAAVXGmDglYFaYECRHizowIXs6ZTndoxtN+UAh5p5aQDNZXhgopNqwCShBjAJAaDOAUhqQIuoOreApuglMMGuu3aXgnNQekjBsBQ4UCSpzjH5IJADDIsgc6y6ylyHZzbXAK7w7flrc6Myh4ADDih64JktBuDAoB6w+OagdRrAqgEZhoueTva9F+J6zk2pAQUZymrhABrQSWqLHkAQqIeTCmnApekagECUdgIoYHsL3IlvcxJUWcCZCKwagAcOcDDAk1Vq0KGkQD7oJ3NujsyeryIJMPF2DVh8MYwvosfAuezRSCJ60KkWwcyw8fnz0fsJwFiEnSLt9HsVMyZ1QAAAOw==" } ] }, "payload": { "task": { "contents": { "content": [ { "type": "text", "value": "Shared information on redeeming points of a rewards card." }, { "type": "html", "value": "<HTML><BODY><H3>Shared information on redeeming points of a rewards card.<\/H3><\/BODY><\/HTML>" } ] } } }, "customAttributes": { "customAttribute": [ { "attribName": "customer_rating", "attribValues": { "attribValue": [ { "value": "5" } ] } } ] }, "customer": { "type": { "value": "individual" }, "contactPersons": { "contactPerson": [ { "firstName": "Anthony", "salutation": "Mr.", "middleName": "Jay", "lastName": "Connors", "loginId": "anthony_connors", "gender": { "value": "male" }, "identification": { "type": "License", "value": "PWVVXX125Y" }, "suffix": { "value": "jr." }, "initials": "AJC", "secretQuestion": "What is your place of birth?", "secretAnswer": "Alabama", "hasDirectMailingConsent": true, "hasDirectCallingConsent": true, "hasHoldingDataConsent": true, "jobTitle": "Manager", "employmentStatus": { "value": "full-time" }, "priority": "max", "dateOfBirth": "1965-02-20T19:00:00.000Z", "maritalStatus": { "value": "married" }, "type": { "value": "Shipping" }, "firstNameFurigana": "Anthony", "middleNameFurigana": "Jay", "lastNameFurigana": "Connors", "startGreeting": "Good Morning", "endGreeting": "Have a good day", "spouseName": "Linda", "emergencyContact": 55555, "occupation": "Helpdesk", "incomeLevel": "middle", "educationLevel": { "value": "post graduate" }, "race": "Caucasian", "dependents": "5", "isSmoker": false, "hobbies": "singing", "interests": "singing", "contactOrder": "20", "contactPoints": { "contactPoint": [ { "type": { "value": "email", "email": { "emailAddress": "anthonyconnors@gmail.com" } } }, { "type": { "value": "phone", "phone": { "type": { "value": "home" }, "phoneNo": "111108", "countryCode": "1", "areaCode": "1", "extension": "1", "availability": { "days": { "value": "any_day" }, "times": { "value": "anytime" } } } } }, { "type": { "value": "phone", "phone": { "type": { "value": "office" }, "phoneNo": "222208", "countryCode": "2", "areaCode": "2", "extension": "2", "availability": { "days": { "value": "weekdays" }, "times": { "value": "day" } } } } }, { "type": { "value": "social", "social": { "type": { "value": "facebook" }, "socialId": "hello_anthony" } } }, { "type": { "value": "social", "social": { "type": { "value": "twitter" }, "socialId": "its_me_anthony" } } }, { "type": { "value": "postal", "postal": { "type": { "value": "home" }, "address_1": "82 Holden Street", "address_2": "Near Walmart", "city": "NY", "state": "NY", "zip": "1111", "country": "US", "region": "NA" } } }, { "type": { "value": "postal", "postal": { "type": { "value": "billto" }, "address_1": "Madison House", "address_2": "MAdison Ave", "city": "NY", "state": "NY", "zip": "1111", "country": "US", "region": "NA" } } }, { "type": { "value": "website", "website": { "url": "www.hello2Anthony.com" } } } ] }, "customAttributes": { "customAttribute": [ { "attribName": "isprimary", "attribValues": { "attribValue": [ { "value": "y" } ] } } ] } } ] }, "level": { "value": "Gold" }, "role": { "value": "Reseller" }, "pin": "411014", "howReferred": { "value": "Partner" }, "industry": { "value": "Telecom" }, "marketSegment": "mid_market", "entitlements": "test_entitlement", "customAttributes": { "customAttribute": [ { "attribName": "preferredlang", "attribValues": { "attribValue": [ { "value": "English" } ] } } ] } } }
Response
HTTP/1.1 201 Created
Response headers
Name | Value |
---|---|
X-egain-session | current session ID |
Content-Type | application/json |
Location | /system/ws/v12/interaction/activity/1661 |
This example demonstrates the following:
Request
Method | URL |
---|---|
POST | /ws/v12/interaction/activity?searchContactOnAttribute=email.emailAddress&activityContact=email.emailAddress&createCustomer=yes |
Request headers
Name | Value |
---|---|
X-egain-session | Valid session ID |
Accept | application/xml |
Content-Type | multipart/form-data; boundary=----WebKitFormBoundaryK6n0QE93FlrCJvlX |
Accept-Language | en-US |
Request body
------WebKitFormBoundaryK6n0QE93FlrCJvlX Content-Disposition: form-data; name="data" <activity xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/activity" xmlns:ns2="http://bindings.egain.com/ws/model/v12/gen/platform" xmlns:ns3="http://bindings.egain.com/ws/model/v12/gen/common" xmlns:ns4="http://bindings.egain.com/ws/model/v12/gen/interaction/attachment" xmlns:ns5="http://bindings.egain.com/ws/model/v12/gen/interaction/contactpoint"> <department> <ns2:name>Service</ns2:name> </department> <type> <value>task</value> <subtype> <ns3:value>General</ns3:value> </subtype> </type> <subject>Follow up with customer</subject> <case id="1011" /> <priority>5</priority> <dueDate>2021-03-31T19:00:00.000Z</dueDate> <status> <assigned> <user> <loginId>don</loginId> </user> </assigned> </status> <payload> <task> <contents> <content> <ns3:type>text</ns3:type> <ns3:value>Shared information on redeeming points of a rewards card.</ns3:value> </content> <content> <ns3:type>html</ns3:type> <ns3:value><![CDATA[<HTML><BODY><H3>Shared information on redeeming points of a rewards card.</H3></BODY></HTML>]]></ns3:value> </content> </contents> </task> </payload> <customAttributes> <ns3:customAttribute> <ns3:attribName>customer_rating</ns3:attribName> <ns3:attribValues> <ns3:attribValue> <ns3:value>5</ns3:value> </ns3:attribValue> </ns3:attribValues> </ns3:customAttribute> </customAttributes> <customer> <type> <value>individual</value> </type> <contactPersons> <contactPerson> <firstName>Anthony</firstName> <salutation>Mr.</salutation> <middleName>Jay</middleName> <lastName>Connors</lastName> <loginId>anthony_connors</loginId> <gender> <value>male</value> </gender> <identification> <type>License</type> <value>PWVVXX125Y</value> </identification> <suffix> <value>jr.</value> </suffix> <initials>AJC</initials> <secretQuestion>What is your place of birth?</secretQuestion> <secretAnswer>Alabama</secretAnswer> <hasDirectMailingConsent>true</hasDirectMailingConsent> <hasDirectCallingConsent>true</hasDirectCallingConsent> <hasHoldingDataConsent>true</hasHoldingDataConsent> <jobTitle>Manager</jobTitle> <employmentStatus> <value>full-time</value> </employmentStatus> <priority>max</priority> <dateOfBirth>1965-02-20T19:00:00.000Z</dateOfBirth> <maritalStatus> <value>married</value> </maritalStatus> <type> <value>Shipping</value> </type> <firstNameFurigana>Anthony</firstNameFurigana> <middleNameFurigana>Jay</middleNameFurigana> <lastNameFurigana>Connors</lastNameFurigana> <startGreeting>Good Morning</startGreeting> <endGreeting>Have a good day</endGreeting> <spouseName>Linda</spouseName> <emergencyContact>55555</emergencyContact> <occupation>Helpdesk</occupation> <incomeLevel>middle</incomeLevel> <educationLevel> <value>post graduate</value> </educationLevel> <race>Caucasian</race> <dependents>5</dependents> <isSmoker>false</isSmoker> <hobbies>singing</hobbies> <interests>singing</interests> <contactOrder>20</contactOrder> <contactPoints> <contactPoint> <type> <value>email</value> <email> <emailAddress>anthonyconnors@gmail.com</emailAddress> </email> </type> </contactPoint> <contactPoint> <type> <value>phone</value> <phone> <type> <value>home</value> </type> <phoneNo>111108</phoneNo> <countryCode>1</countryCode> <areaCode>1</areaCode> <extension>1</extension> <availability> <days> <value>any_day</value> </days> <times> <value>anytime</value> </times> </availability> </phone> </type> </contactPoint> <contactPoint> <type> <value>phone</value> <phone> <type> <value>office</value> </type> <phoneNo>222208</phoneNo> <countryCode>2</countryCode> <areaCode>2</areaCode> <extension>2</extension> <availability> <days> <value>weekdays</value> </days> <times> <value>day</value> </times> </availability> </phone> </type> </contactPoint> <contactPoint> <type> <value>social</value> <social> <type> <value>facebook</value> </type> <socialId>hello_anthony</socialId> </social> </type> </contactPoint> <contactPoint> <type> <value>social</value> <social> <type> <value>twitter</value> </type> <socialId>its_me_anthony</socialId> </social> </type> </contactPoint> <contactPoint> <type> <value>postal</value> <postal> <type> <value>home</value> </type> <address_1>82 Holden Street</address_1> <address_2>Near Walmart</address_2> <city>NY</city> <state>NY</state> <zip>1111</zip> <country>US</country> <region>NA</region> </postal> </type> </contactPoint> <contactPoint> <type> <value>postal</value> <postal> <type> <value>billto</value> </type> <address_1>Madison House</address_1> <address_2>MAdison Ave</address_2> <city>NY</city> <state>NY</state> <zip>1111</zip> <country>US</country> <region>NA</region> </postal> </type> </contactPoint> <contactPoint> <type> <value>website</value> <website> <url>www.hello2Anthony.com</url> </website> </type> </contactPoint> </contactPoints> <customAttributes> <ns3:customAttribute> <ns3:attribName>isprimary</ns3:attribName> <ns3:attribValues> <ns3:attribValue> <ns3:value>y</ns3:value> </ns3:attribValue> </ns3:attribValues> </ns3:customAttribute> </customAttributes> </contactPerson> </contactPersons> <level> <value>Gold</value> </level> <role> <value>Reseller</value> </role> <pin>411014</pin> <howReferred> <value>Partner</value> </howReferred> <industry> <value>Telecom</value> </industry> <marketSegment>mid_market</marketSegment> <entitlements>test_entitlement</entitlements> <customAttributes> <ns3:customAttribute> <ns3:attribName>preferredlang</ns3:attribName> <ns3:attribValues> <ns3:attribValue> <ns3:value>English</ns3:value> </ns3:attribValue> </ns3:attribValues> </ns3:customAttribute> </customAttributes> </customer> </activity> ------WebKitFormBoundaryK6n0QE93FlrCJvlX Content-Disposition: form-data; name="data-type" application/xml ------WebKitFormBoundaryK6n0QE93FlrCJvlX Content-Disposition: form-data; name="file"; filename="phone.gif" Content-Type: image/gif 9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAMABVYDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD7FjJkiYk8KOtfRn7FH7LXhzx18O38XeL9Dsdfk1meQaba6lAtxbW9ojbFcROChaRlZw5BOwpjHOflvQVvPHniTS/DGmMy6j4ivI9PgdRnyd5+eXHcRoHkPshr9Pf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Pxb1zxzb+JtZj+G2seIbKDyrTVm+Huh2WpWrratawTLeWlrDcloEKmNWlKAxR7kZVC15t8DP2xvH37M+i3dp4IvfD+hXV0ZyusL4Y0ufXbLzoTBJ9l1OW3a9tcxlgPImTbuYjBYkgHqHhTwY/wCyv+zbo95c+CPC/jH4m/FDxobXQ9P1XRE1cRWGlymJmghI+Y3OoyLEFUESrYyRsrRyMjfVPxDfwV8H/hvrfi1vhp8G/Evxu8Df8Ib4L8aW1l4V0i58OwaheXuoXN7GmnJCbEXYt7a1sppreLKS+eIyjBmr4R039uf4g+Evjb4I+IPh260fw/4i+HGj22ieHmh0uC8t9PhhhePf5N2syPJI0s0rs4b97M7Lt+ULq+Hf+Cmfxd8FeKrnWNDvfAWg3F5bxW91baX8OvDljp955VwtzBLNaRWK28txDMivFO8ZliOdjrk5APpH9sj4H/D/AOHf7OX7VPg7wp8PvBljc/DL4waXpGja9b20txrUttdSamTavczSybUjWKKEJCIlYRAyK8mWqX/gqT/wT8f9jv8A4Ju/Cyxb4Y32ja/4X8WXmleJfF02gSW8muTTadY3JJumiVpLVLmW5t4CWKOLR2Qklq+Trf8A4KDfFO0+DHiTwDJqXha/8O+MbmS91xtR8GaLfalq907zP9qnv5rR7yS4Vp5ikzTGSPzDsZa841P41+J9U+DGl/D241PzPB+jatc65ZWH2eIeTeXEUUU0vmBfMbckEQ2sxUbcgAkkgHMRXBRGHqDXW66pPibUlPVbqUH/AL7Nca/3D9K9U8Q/D+41Xxrq1xZ6l4VltJ72aSF28R6em9GkYqcNMCMjHUZoAzDpu74X6rPx8mqWSf8AfUN4f/ZaK6LxHoX/AAi3wY1O3ur/AEOa7vNasJIYrLV7W9kZEgvQ7FYZHKgGSMZOBlhRQB//2Q== ------WebKitFormBoundaryK6n0QE93FlrCJvlX--
Response
HTTP/1.1 201 Created
Response headers
Name | Value |
---|---|
X-egain-session | current session ID |
Content-Type | application/xml |
Location | /system/ws/v12/interaction/activity/1662 |
Request
Method | URL |
---|---|
POST | /ws/v12/interaction/activity?searchContactOnAttribute=email.emailAddress&activityContact=email.emailAddress&createCustomer=yes |
Request headers
Name | Value |
---|---|
X-egain-session | Valid session ID |
Accept | application/json |
Content-Type | multipart/form-data; boundary=----WebKitFormBoundaryK6n0QE93FlrCJvlX |
Accept-Language | en-US |
Request body
------WebKitFormBoundaryK6n0QE93FlrCJvlX Content-Disposition: form-data; name="data" { "department": { "name": "Service" }, "type": { "value": "task", "subtype": { "value": "General" } }, "subject": "Follow up with customer", "case": { "id": "1011" }, "priority": "5", "dueDate": "2021-03-31T19:00:00.000Z", "status": { "assigned": { "user": { "loginId": "don" } } }, "payload": { "task": { "contents": { "content": [ { "type": "text", "value": "Shared information on redeeming points of a rewards card." }, { "type": "html", "value": "<HTML><BODY><H3>Shared information on redeeming points of a rewards card.</H3></BODY></HTML>" } ] } } }, "customAttributes": { "customAttribute": [ { "attribName": "customer_rating", "attribValues": { "attribValue": [ { "value": "5" } ] } } ] }, "customer": { "type": { "value": "individual" }, "contactPersons": { "contactPerson": [ { "firstName": "Anthony", "salutation": "Mr.", "middleName": "Jay", "lastName": "Connors", "loginId": "anthony_connors", "gender": { "value": "male" }, "identification": { "type": "License", "value": "PWVVXX125Y" }, "suffix": { "value": "jr." }, "initials": "AJC", "secretQuestion": "What is your place of birth?", "secretAnswer": "Alabama", "hasDirectMailingConsent": true, "hasDirectCallingConsent": true, "hasHoldingDataConsent": true, "jobTitle": "Manager", "employmentStatus": { "value": "full-time" }, "priority": "max", "dateOfBirth": "1965-02-20T19:00:00.000Z", "maritalStatus": { "value": "married" }, "type": { "value": "Shipping" }, "firstNameFurigana": "Anthony", "middleNameFurigana": "Jay", "lastNameFurigana": "Connors", "startGreeting": "Good Morning", "endGreeting": "Have a good day", "spouseName": "Linda", "emergencyContact": 55555, "occupation": "Helpdesk", "incomeLevel": "middle", "educationLevel": { "value": "post graduate" }, "race": "Caucasian", "dependents": "5", "isSmoker": false, "hobbies": "singing", "interests": "singing", "contactOrder": "20", "contactPoints": { "contactPoint": [ { "type": { "value": "email", "email": { "emailAddress": "anthonyconnors@gmail.com" } } }, { "type": { "value": "phone", "phone": { "type": { "value": "home" }, "phoneNo": "111108", "countryCode": "1", "areaCode": "1", "extension": "1", "availability": { "days": { "value": "any_day" }, "times": { "value": "anytime" } } } } }, { "type": { "value": "phone", "phone": { "type": { "value": "office" }, "phoneNo": "222208", "countryCode": "2", "areaCode": "2", "extension": "2", "availability": { "days": { "value": "weekdays" }, "times": { "value": "day" } } } } }, { "type": { "value": "social", "social": { "type": { "value": "facebook" }, "socialId": "hello_anthony" } } }, { "type": { "value": "social", "social": { "type": { "value": "twitter" }, "socialId": "its_me_anthony" } } }, { "type": { "value": "postal", "postal": { "type": { "value": "home" }, "address_1": "82 Holden Street", "address_2": "Near Walmart", "city": "NY", "state": "NY", "zip": "1111", "country": "US", "region": "NA" } } }, { "type": { "value": "postal", "postal": { "type": { "value": "billto" }, "address_1": "Madison House", "address_2": "MAdison Ave", "city": "NY", "state": "NY", "zip": "1111", "country": "US", "region": "NA" } } }, { "type": { "value": "website", "website": { "url": "www.hello2Anthony.com" } } } ] }, "customAttributes": { "customAttribute": [ { "attribName": "isprimary", "attribValues": { "attribValue": [ { "value": "y" } ] } } ] } } ] }, "level": { "value": "Gold" }, "role": { "value": "Reseller" }, "pin": "411014", "howReferred": { "value": "Partner" }, "industry": { "value": "Telecom" }, "marketSegment": "mid_market", "entitlements": "test_entitlement", "customAttributes": { "customAttribute": [ { "attribName": "preferredlang", "attribValues": { "attribValue": [ { "value": "English" } ] } } ] } } } ------WebKitFormBoundaryK6n0QE93FlrCJvlX Content-Disposition: form-data; name="data-type" application/json ------WebKitFormBoundaryK6n0QE93FlrCJvlX Content-Disposition: form-data; name="file"; filename="phone.gif" Content-Type: image/gif 9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/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Evxu8Df8Ib4L8aW1l4V0i58OwaheXuoXN7GmnJCbEXYt7a1sppreLKS+eIyjBmr4R039uf4g+Evjb4I+IPh260fw/4i+HGj22ieHmh0uC8t9PhhhePf5N2syPJI0s0rs4b97M7Lt+ULq+Hf+Cmfxd8FeKrnWNDvfAWg3F5bxW91baX8OvDljp955VwtzBLNaRWK28txDMivFO8ZliOdjrk5APpH9sj4H/D/AOHf7OX7VPg7wp8PvBljc/DL4waXpGja9b20txrUttdSamTavczSybUjWKKEJCIlYRAyK8mWqX/gqT/wT8f9jv8A4Ju/Cyxb4Y32ja/4X8WXmleJfF02gSW8muTTadY3JJumiVpLVLmW5t4CWKOLR2Qklq+Trf8A4KDfFO0+DHiTwDJqXha/8O+MbmS91xtR8GaLfalq907zP9qnv5rR7yS4Vp5ikzTGSPzDsZa841P41+J9U+DGl/D241PzPB+jatc65ZWH2eIeTeXEUUU0vmBfMbckEQ2sxUbcgAkkgHMRXBRGHqDXW66pPibUlPVbqUH/AL7Nca/3D9K9U8Q/D+41Xxrq1xZ6l4VltJ72aSF28R6em9GkYqcNMCMjHUZoAzDpu74X6rPx8mqWSf8AfUN4f/ZaK6LxHoX/AAi3wY1O3ur/AEOa7vNasJIYrLV7W9kZEgvQ7FYZHKgGSMZOBlhRQB//2Q== ------WebKitFormBoundaryK6n0QE93FlrCJvlX--
Response
HTTP/1.1 201 Created
Response headers
Name | Value |
---|---|
X-egain-session | current session ID |
Content-Type | application/json |
Location | /system/ws/v12/interaction/activity/1662 |