Create

Build 1501 on 14/Nov/2017  This topic last edited on: 10/Oct/2014, at 16:53

 VERSION 2.1 OR NEWER 

Description

Create new objects in Kentico. REST.

Syntax

http://localhost/GNWeb/webdo.ashx?cmd=create

Parameters

string siteName

bool updateIfExists

string childToRemoveClassNames,

XmlDocument (POST)

Return

dataSet

 

 VERSION 2.0 OR OLDER

Description

Create new objects in Kentico. SOAP.

Syntax

DataSet res = Create(string siteName, XmlElement xmldata, bool updateIfExists, string childToRemoveClassNames)

Parameters

siteName = Kentico site name where to create objects

xmldata = GN4 data for objects creation in xml format

updateIfExists = if object already exits, do not recreate it, update only data

childToRemoveClassNames = child object name to remove before creating new ones

res = table with error messages

Example

<gn3 xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns="">

  <cms.folder>

    <NodeAlias>2014</NodeAlias>

    <DocumentName>2014</DocumentName>

    <DocumentCulture>en-US</DocumentCulture>

    <ParentNodePathAlias>/</ParentNodePathAlias>

  </cms.folder>

  <cms.folder>

    <NodeAlias>02</NodeAlias>

    <DocumentName>02</DocumentName>

    <DocumentCulture>en-US</DocumentCulture>

    <ParentNodePathAlias>/2014</ParentNodePathAlias>

  </cms.folder>

  <cms.folder>

    <NodeAlias>10</NodeAlias>

    <DocumentName>10</DocumentName>

    <DocumentCulture>en-US</DocumentCulture>

    <ParentNodePathAlias>/2014/02</ParentNodePathAlias>

  </cms.folder>

  <cms.menuitem>

    <SiteName>GNWebDH</SiteName>

    <NodeAlias>News</NodeAlias>

    ...

  </cms.menuitem>

</gn3>

 

 

<gn3 xmlns:edfn="http://www.teradp.com/schemas/GN4/1/EditorialXslt" xmlns="">

  <tera.gn3article GN4Id="2084">

    <UserName>luca</UserName>

    <ParentNodePathAlias>/2014/02/10</ParentNodePathAlias>

    ...

  </tera.gn3article>

  <tera.gn3picture>

    <GN3EditorialKey>GN4_IMG_2092</GN3EditorialKey>

    <GN3ParentEditorialKey>GN4_ART_2084</GN3ParentEditorialKey>

    ...

  </tera.gn3picture>

</gn3>