Quantcast
Channel: Topliners: Message List
Viewing all articles
Browse latest Browse all 3418

Link New Shared List to Existing Segment Using REST API??

$
0
0

I have requirement where I need to create a new Shared list using Rest API and then link this newly created API to already existing segment in Eloqua. I have been provided with SegmentId to identify the segment.

 

I am using SOAP UI to carry out my testing.

 

I am able to create a new list using EndPoint "https://secure.p03.eloqua.com/API/REST/2.0/assets/contact/list/{id}/copy" and provided the input as JSON message

{

         "type": "ContactList",

         "name": "Shared List Test 1",

         "scope": "global"

}

 

But how i should link the above created external list to segment. I tried using /API/REST/2.0/assets/contact/segment/{id}/list method for linking the external List to segment but this only creates a local list . Input provided below adds Shared List 220 and Shared List 210 as local List to Segment without creating the shared list.

 

{

"name": "Segment123",

"id":"26",

"elements": [{

      "type": "ContactListSegmentElement",

      "isIncluded": "true"

      "id":"52"

      "list":       {

      "id": "123"

      "name": "Shared List 210"

      "scope": "global"

      }     

   },

   {

      "type": "ContactListSegmentElement",

      "isIncluded": "true"

      "id":"54"     

      "list":       {

      "id": "125"

      "name": "Shared List 220"

      "scope": "global"

   }     

   } 

   ]  

}

 

Any inputs will be highly appreciated.


Viewing all articles
Browse latest Browse all 3418

Trending Articles