RESTMessageV2 - setRequestBody(String body)

Set the body content to send to the web service provider when using PUT or POST HTTP methods.

When you set the body content using this method, variables in the body are not substituted for parameters from the REST message function record. You must explicitly define all values within the REST message body.

Table 1. Parameters
Name Type Description
body String The request body to send.
Table 2. Returns
Type Description
var sm = new sn_ws.RESTMessageV2("Update user","post"); //Might throw exception if message doesn't exist or not visible due to scope.
var body = "<Message body content>";