Create

This content applies to legacy components (such as K2 Studio and K2 for Visual Studio), legacy assemblies, legacy services or legacy functionality. If you have upgraded from K2 blackpearl 4.7 to K2 Five, these items may still be available in your environment. These legacy items may not be available in new installations of K2 Five. These legacy items may also not be available, supported, or behave as described, in future updates or versions of K2. Please see the legacy component support policy for more information about support for these components.

Executes the Create type method on the SmartObject, using the request body data posted.

  Value Notes
URI {Service Root URI}{Service Path}

Example:
http://k2.denallix.com:8888/SmartObjectServices/REST/Samples/Employee/Create
See URIs for REST Services
Method POST  
Request Headers Content-type: application/xml Ensure that the request has the correct Content-type set
Request Body XML string representing the SmartObject record to create

Example Body data for a a hypothetical Employee SmartObject:
<Employee>
    <Username>DENALLIX\Rick</Username>
    <First_Name>Rick</First_Name>
    <Last_Name>Cowan</Last_Name>
    <Email>rick@denallix.com</Email>
</Employee>

The request body contains the SmartObject item to create represented as XML. 
The root for the XML is the system name of the SmartObject and the elements are the system names of the properties you want in the new item. 
The SmartObject XML returned from SmartObject GET methods (Load and List) can be used as a starting point to build up the XML input of this POST method.

Return Type Errors and Response Codes Due to the asynchronous nature of the POST, a successful call may not return anything depending on the tooling used to execute the POST