Public
Documentation Settings

API CreateContextData

Postman collection to demonstrate ContextData API usage

ContextData

ContextData Example to handle records creation and update in Nixxis DB

Create Contact

  • To set an activity Id, instead of xsi:nil, use the following:
Plain Text
<CurrentActivity>fdfaef6d153a4c0786e1eeafbbc5d38a</CurrentActivity>

POSTCreateContextData

http://{{AppServer}}/data?action=CreateContextData&context=9ff65021118c4a8999f6b3b7012d5f93

Context = campagin Id available in admin.dbo.campaigns

PARAMS
action

CreateContextData

context

9ff65021118c4a8999f6b3b7012d5f93

CampaignId

Bodyraw (xml)
xml
<contextdata>
 	<campaigndata>
     <Nom>Fred3</Nom>
 	 	<TEL>124584</TEL>
          <CP>45258</CP>
          <Commentaires>Depuis x page</Commentaires>
 	</campaigndata>
   <systemdata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <CurrentActivity xsi:nil="true" />
        <SortInfo>-1000</SortInfo>
          <DialStartDate>2023-07-18 07:01:35.570</DialStartDate>
    </systemdata>
</contextdata>
Example Request
curl
curl --location -g 'http://{{AppServer}}/data?action=CreateContextData&context=9ff65021118c4a8999f6b3b7012d5f93' \
--data '<contextdata>
 	<campaigndata>
     <Nom>Fred3</Nom>
 	 	<TEL>124584</TEL>
          <CP>45258</CP>
          <Commentaires>Depuis x page</Commentaires>
 	</campaigndata>
   <systemdata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <CurrentActivity xsi:nil="true" />
        <SortInfo>-1000</SortInfo>
          <DialStartDate>2023-07-18 07:01:35.570</DialStartDate>
    </systemdata>
</contextdata>
'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers

Update Contact

Update d'un contact utilisant ListMatchingData(Phone) pour mettre à jour le numéro de tel d'un contact

GET01 - ListMatchingData

http://{{AppServer}}/data?action=ListMatchingData&Context=9ff65021118c4a8999f6b3b7012d5f93&__TEL=0640440440

Sample response

xml
<ResultSet>
    <Element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" internalId="0123f387efce4a8da9d44a0881967f3d">
        <Tel1>5128461</Tel1>
        <Tel2>52193</Tel2>
        <Nom>Anderea</Nom>
        <Prenom>Olivette</Prenom>
        <email2>Anderea.Olivette@gmail.com</email2>
        <profession>doctor</profession>
        <Id>17240200</Id>
        <Code_Postal>FK</Code_Postal>
    </Element>
</ResultSet>
PARAMS
action

ListMatchingData

Context

9ff65021118c4a8999f6b3b7012d5f93

__TEL

0640440440

Example Request
curl
curl --location -g 'http://{{AppServer}}/data?action=ListMatchingData&Context=9ff65021118c4a8999f6b3b7012d5f93&__TEL=0640440440'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers