NetSuite HTTP DELETE Parameters
NetSuite HTTP DELETE method uses specific URL and header parameters. The HTTP DELETE method in NetSuite's SuiteScript allows developers to send requests to
The HTTP DELETE method in NetSuite's SuiteScript allows developers to send requests to remove resources at a specified URL. Understanding the necessary parameters is crucial for successful integration.
What are the Key Parameters for HTTP DELETE?
This method involves using a JavaScript object for the options parameter, focusing primarily on url and optionally on headers.
-
options.url: This is a requiredstringthat specifies the HTTP URL for the request. Ensure the URL is fully qualified. Misconfiguration here will lead to errors such asSSS_INVALID_URLorSSS_MISSING_REQD_ARGUMENTif left unspecified. -
options.headers: This optionalObjectallows the inclusion of HTTP headers with the request. Consult the relevant section on HTTP Header Information for detailed implementation.
Error Handling and Timeouts
The method times out if it takes over 5 seconds to connect or more than 45 seconds to send the payload. Ensure domain names in URLs are correct to prevent SSS_INVALID_HOST_CERT errors.
Supported Script Types
The HTTP DELETE method works in both client and server scripts but does not function in unauthenticated client-side contexts.
Governance: Invoking this method consumes 10 governance units.
Note: This method has been available since version 2015.2 of NetSuite.
Code Sample
1// Example setup for DELETE request2var headerObj = {3 name: 'Accept-Language',4 value: 'en-us'5};6var response = http.delete({7 url: 'http://www.mytestwebsite.com',8 headers: headerObj9});Who This Affects
- Integrations Specialists: For those handling web service integrations, understanding parameters is vital.
- Developers: Client and server-side scripts can utilize this for resource management.
Key Takeaways
- The
urlparameter is mandatory and critical for defining the request endpoint. - Use
headersto customize your HTTP requests when necessary. - Govern the usage with its 10-unit cost and respect the timeout limitations.
- Check domain configurations to avoid common certificate errors.
Frequently Asked Questions (4)
Can the HTTP DELETE method be used in unauthenticated client-side contexts within SuiteScript?
What happens if the 'options.url' parameter is not specified in a SuiteScript HTTP DELETE request?
How do timeout settings affect HTTP DELETE requests in SuiteScript?
Are there any governance considerations when using the HTTP DELETE method in SuiteScript?
Was this article helpful?
More in REST Web Services
- New Attach and Detach Operations in REST Web Services NetSuite
NetSuite 2026.1 introduces new attach and detach operations in REST web services to manage record relationships efficiently.
- SuiteTalk Web Services Enhancements in NetSuite 2026.1
SuiteTalk web services enhancements in NetSuite 2026.1 improve integrations, simplify operations, and boost performance for developers.
Advertising
Reach REST Web Services Professionals
Put your product in front of NetSuite experts who work with REST Web Services every day.
Sponsor This Category