Usage RESTlet Request Headers
When you send a request, you need to include the following request headers as part of the request.
Name |
Value |
---|---|
Method |
POST |
URL |
<RESTlet External URL> |
Headers |
|
User-Agent-X |
SuiteScript-Call |
Content-Type |
application/json |
Authorization |
NLAuth nlauth_account=SCOMPID, nlauth_email=USEREMAIL, nlauth_signature=USERPASSWORD, nlauth_role=3 |
Perform the following procedure to get the value for the RESTlet external URL.
To get the value for the RESTlet external URL:
-
Go to Customization > Scripting > Scripts.
-
Set the filters to view only RESTlet script types.
-
Look for the sbe_rs_main (customscript_sbe_rs_main) script and click the Deployments link.
-
Click the View link for the customdeploy_sbe_rs_main deployment record.
-
Copy the URL specified in the External URL field. Use this value for the URL in the request header.