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.
TL;DR Opening
Starting in NetSuite 2026.1, new attach and detach operations in REST web services allow you to define or remove relationships between two record instances, enhancing data connectivity and integration capabilities.
What’s New
The latest update introduces attach and detach operations within the NetSuite REST web services framework. This feature enables developers and administrators to efficiently associate two records, such as linking a contact with a partner or attaching a file to an opportunity. Currently, these operations support only contact and file records.
How It Works
To perform an attach or detach operation, you will need to use the appropriate record types and instance IDs in the URL. The basic structure of the HTTP request for attaching a record looks like this:
/services/rest/record/v1/{recordType}/{recordId}/!attach/{relatedRecordType}/{relatedRecordId}Examples:
- Attach a Contact to a Customer:
plaintextPOST /services/rest/record/v1/customer/660/!attach/contact/106Content-Type: application/json{"role": { "id": "-10" }}
- Attach a File to an Opportunity:
plaintextPOST /services/rest/record/v1/opportunity/379/!attach/file/398Content-Type: application/json{}
These requests utilize the POST HTTP method, and the request body permits the inclusion of optional attributes such as the role for contacts. If no attributes are needed, an empty body ({}) can be submitted.
Detach Operations
The detach operations follow a similar structure:
/services/rest/record/v1/{recordType}/{recordId}/!detach/{relatedRecordType}/{relatedRecordId}External IDs Support
The attach and detach operations also support using external IDs, providing flexibility for developers integrating with external systems.
Who This Affects
- Developers: Need to implement new integrations using the REST API.
- Administrators: Responsible for configuring the integrations and ensuring compliance with data management practices.
- CRM Users: Might utilize this functionality for managing records effectively within the system.
Key Takeaways
- New attach and detach operations in REST web services enable better record management.
- Currently, only contact and file records can be attached or detached.
- These operations support the use of external IDs for enhanced integration capabilities.
- Request bodies can include optional attributes to customize the attachment, improving flexibility in administration.
- The HTTP method for these operations is POST, with clear URL structures for execution.
Frequently Asked Questions (4)
Do I need specific permissions to use the new attach and detach operations in NetSuite REST web services?
Are the new attach and detach operations available for all record types in NetSuite?
Can I use external IDs for the attach and detach operations in REST web services?
What HTTP method is used for the new attach and detach operations?
Weekly Update History (1)
Updated SOAP Web Services Version 2025.2 with the information that the 2025.2 WSDL is now available.
View Oracle DocsWas this article helpful?
Also from NetSuite 2026.1
- Custom Labels for Additional Item Prices in NetSuite 2026.1
Custom labels enhance transaction summaries in NetSuite, improving clarity for item prices.
- Applied Trans Date and Period Enhancements in NetSuite 20...
Latest updates in NetSuite 2024.1 enhance Accounting SuiteApps with transaction line distribution features.
- Data Not Copied from Production to Sandbox in NetSuite 2026.1
In NetSuite 2026.1, key data like domains and customer roles are not copied to sandbox accounts during refreshes, impacting setup.
- Available Items Only Feature in NetSuite 2026.1
Available items only filtering boosts sales efficiency in NetSuite 2026.1 with Intelligent Item Recommendations.
Advertising
Reach SuiteTalk Web Services Professionals
Put your product in front of NetSuite experts who work with SuiteTalk Web Services every day.
Sponsor This Category