Execute

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 Execute type method on the SmartObject with the data posted.

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

Example:
http://k2.denallix.com:8888/SmartObjectServices/REST/Samples/Employee/Disable

See URIs for REST Services

The SmartObject Key can contain multiple properties separated by ampersand (&), for example Id1=100&Id2=2001 if you wish to update multiple records at once.

Method POST This method cannot be called via URI construction in the address bar of standard browsers.  Tooling such as Fiddler or .NET code may be required to execute the 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, to call the disable method with a specific username
<Employee>
    <Username>DENALLIX\Rick</Username>
</Employee>

The request body contains the SmartObject item to execute, represented as XML. 
he root for the XML is the system name of the SmartObject and the elements are the system names of the properties needed as input parameters for the execute method.  The SmartObject XML returned from SmartObject GET methods (Load and List) can be used as a starting point for the XML input of this POST method.

Return Type

Errors and Response Codes

The method may return data in XML format, if the underlying execute method is configured to return data.

Due to the asynchronous nature of the POST, a successful call may not return anything depending on the tooling used to execute the POST.