post
Description |
This function runs when a post request calls the RESTlet—usually to create something, like a NetSuite record. |
Returns |
The RESTlet returns an HTTP response body as either a string or an Object.
|
Since |
Version 2015 Release 2 |
Parameters
NetSuite automatically passes requestParams
as a JavaScript object to your RESTlet entry point.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string | Object |
required, but automatically passed by NetSuite |
The request body is a string if the Content-Type is 'text/plain', or a JavaScript object if the Content-Type is 'application/json' or 'application/xml'. |
Version 2015 Release 2 |