Selecting an HTTP/HTTPS Method for Calling a RESTlet
When you call a RESTlet, you can use one of four HTTP/HTTPS methods: delete, get, post, or put. Use the N/https module to connect SuiteScript scripts, RESTlets, and SuiteTalk REST endpoints without needing to reauthenticate. Use https.requestRestlet(options) or https.requestSuiteTalkRest(options) to send HTTPS requests to a RESTlet or REST endpoint.
When you call a RESTlet, keep these things in mind:
-
A Call's Method Must Match an Entry Point defined in the RESTlet
-
HTTPS Methods for Secure Communication Between SuiteScript Scripts and REST Endpoints