NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Bom → Update record

AI-generated

Summary

Update an existing Bill of Materials (BOM) record in NetSuite using its internal ID, modifying specified fields.

Inputs

  • Id (required) — The internal identifier of the BOM record to update.
  • Additional Fields — Additional standard fields to update on the BOM record. Includes properties like 'Name', 'Memo', 'Inactive', 'Available For All Assemblies', and related entities such as 'Assembly Items', 'Subsidiary', and 'Custom Form' by their IDs or external IDs.
  • Custom Fields — A list of custom fields to update on the BOM record. Each custom field requires its 'Field Name', 'Field Type', and the corresponding 'Value'. The value type dynamically adjusts based on the selected 'Field Type'.
  • Prefer — Specifies the server behavior for the request. Choose 'respond-async' to execute the request asynchronously. If asynchronous, 'Preference-applied: respond-async' is returned in the response.
  • Replace — A comma-separated list of sublist names (e.g., 'items'). If provided, all existing lines in these sublists will be replaced with the lines specified in the request body.
  • Replace Selected Fields — If set to 'true', any fields that should be deleted in the update request, including body fields, must also be explicitly included in the 'Replace' query parameter. This ensures precise control over field deletion.
  • X - Net Suite - Idempotency - Key — A unique idempotency key (UUID format) to ensure that asynchronous requests are executed only once. This value is ignored for synchronous requests.
  • X - Net Suite - Property Name Validation — Sets the strictness of property name validation (Error, Warning, Ignore) for the request.
  • X - Net Suite - Property Value Validation — Sets the strictness of property value validation (Error, Warning, Ignore) for the request.
  • Debug Mode — If enabled, the output will include full details of the request and response for debugging purposes.

Output shape

A single JSON object representing the updated BOM record.

The output reflects the BOM record after the update. If 'Debug Mode' is enabled, the output will also contain detailed request and response information. If Prefer is set to respond-async, the response will indicate the acceptance of the asynchronous request (e.g., a 202 status) rather than the fully updated record immediately.

Examples

Example 1: Update the name and memo of an existing BOM.

Set 'Id' to the BOM's internal ID, then configure 'Additional Fields' with a new 'Name' and 'Memo'.

Example 2: Mark a BOM as inactive.

Provide the BOM's 'Id' and set 'Inactive' to 'true' in 'Additional Fields'.

Example 3: Update a custom text field on a BOM.

Specify the BOM's 'Id', then add an entry in 'Custom Fields' with the custom 'Field Name', 'Field Type' set to 'String', and the desired 'Value'.

Discussion