Assembly Build
An assembly build record exposes an assembly build to REST web services.
This record:
-
is not a subrecord
-
has one subrecords: component
The REST API Browser includes information about the field names and field types of the assembly build record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s assemblyBuild reference page.
For information about using the REST API Browser, see The REST API Browser.
Record IDs
The record ID for an assembly build REST record is assemblyBuild.
Code Samples
The following samples show common use cases for assembly builds. The example ID is 4.
Creating an Assembly Build Using a POST Request
POST https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/assemblyBuild
{ "subsidiary": { "id": "5" }, "location": { "id": "5" }, "item": { "id": "67" }, "quantity": 10.0
}
Retrieving an Assembly Build Using a GET Request
GET https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/assemblyBuild/4
The following code sample shows how to retrieve an assembly build component. The component ID is 7.
GET https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/assemblyBuild/4/component/lineNumber=7
Updating an Assembly Build Using a PATCH Request
PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/assemblyBuild/4
{ "quantity": "20"
}
The following code sample shows how to update an assembly build component. The component ID is 7.
PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/assemblyBuild/4/component/lineNumber=7/
{ "quantity": "21"
}
The following code sample shows how to convert an assembly build to an assembly unbuild.
POST {{COMPANY_URL}}/services/rest/record/v1/assemblyBuild/4/!transform/assemblyUnbuild