API call a RESTlet endpoint using SuiteScript 2.0 from a client script

let response = https.post({
    url: `/app/site/hosting/restlet.nl?script=${SCRIPT_ID}&deploy=${DEPLOYMNT_ID}`,
    body: JSON.stringify({}),
    headers: { 'Content-Type': 'application/json' }
});

Leave a comment

Your email address will not be published. Required fields are marked *