Collection.AddUpdate - Mozenda

Collection.AddUpdate

November 16, 2018

Description

Adds a new collection or updates an existing collection of the same name with the fields and data items provided. Accepts same data formats as Collection.AddItem bulk insertion.

Required parameters

CollectionName, Data File (XML) or POST Data (JSON)

Returns

The result of the operation including the CollectionID, CollectionName, whether or not a new collection was added, the number of fields added to the collection, and the number of items added to the collection.

Example request url

https://api.mozenda.com/rest?WebServiceKey=C70E1F84-E12B-4e73-B199-2EE6D43AF44E&Service=Mozenda10&Operation=Collection.AddUpdate&Name=MyUpdatedCollection

Example response

<?xml version="1.0" encoding="utf-8" ?>
<CollectionAddUpdateResponse 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Result>Success</Result>
  <CollectionID>1201</CollectionID>
  <CollectionName>AddUpdateCollectionJSON</CollectionName>
  <CollectionAdded>True</CollectionAdded>
  <FieldsAdded>3</FieldsAdded>
  <ItemsAdded>8</ItemsAdded>
</CollectionAddUpdateResponse>

Need more information?

We'd love to hear from you.

100% Privacy. You are that important to us. Privacy Policy