restlet.Response
Object Description |
An HTTP response of a RESTlet script. This object is read-only. Use restlet.createResponse(options) to create and return this object. For a complete list of this object's properties, see Response Object Members. |
Supported Script Types |
RESTlet scripts For more information, see SuiteScript 2.x Script Types. |
Module |
|
Methods and Properties |
|
Since |
2024.1 |
Syntax
Important:
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/scriptTypes/restlet Module Script Sample.
// Add additional code
...
const response = restlet.createResponse({
content: JSON.stringify({ internalid: 1 }),
contentType: 'application/json'
});
...
// Add additional code