BOM Revision
A BOM revision record exposes a BOM revision to REST web services.
This record:
-
is not a subrecord
-
has one subrecord: component
The REST API Browser includes information about the field names and field types of the BOM revision record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s bomRevision reference page.
For information about using the REST API Browser, see The REST API Browser.
Record IDs
The record ID for a BOM revision REST record is bomRevision.
Prerequisites
You must enable the Advanced Bill of Materials feature before you can use this record through REST web services.
Code Samples
The following samples show common use cases for BOM revisions. The example ID is 4.
Creating a BOM Revision with a Component Using a POST Request
POST https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/bomRevision
{
"name": "Revision rest 1",
"billOfMaterials": {"id": 78},
"component": {
"items": [
{
"item": {"id": 53},
"bomQuantity": 1
}
]
}
}
Retrieving a BOM Revision Using a GET Request
GET https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/bomRevision
/4
Updating a BOM Revision Using a PATCH Request
The following code sample shows how to edit the quantity on a component line. The component line ID is 7.
PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/bomRevision/4/component/7
{
"bomQuantity": 5
}