SuiteScript 2.x RESTlet Script Entry Points and API

Script Entry Point

Description

get

Lets you retrieve something (like a NetSuite record). Runs when a get request calls the RESTlet—like http.get. Returns an HTTP response body.

delete

Lets you delete something (like a NetSuite record). Runs when a delete request calls the RESTlet—like http.delete. Returns an HTTP response body.

put

Lets you insert or upsert something (like a NetSuite record). Runs when a put request calls the RESTlet—like http.put. Returns an HTTP response body.

post

Lets you create something (like a NetSuite record). Runs when a post request calls the RESTlet—like http.post. Returns an HTTP response body.

Related Topics

General Notices