Download Item
A download item record exposes a download item to REST web services. This record is not a subrecord.
The REST API Browser includes information about the field names and field types of the download item record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s DownloadItem reference page.
For information about using the REST API Browser, see The REST API Browser.
Record IDs
The record ID for a download item REST record is downloadItem.
Prerequisites
You must first enable the feature.
Code Samples
The following samples show common use cases for download items. The example ID is 4.
Creating a Download Item Using a POST Request
POST https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/downloadItem
{ "itemId": "download item", "subsidiary": { "items": [ { "id": "5" } ] }
}
Retrieving a Download Item Using a GET Request
GET https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/downloadItem/4
Updating a Download Item Using a PATCH Request
PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/downloadItem/4
{ "parent": {"id": 315}
}