NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Inventory Item → Update record

AI-generated

Summary

PATCH update an Inventory Item record by ID, supplying new or updated field values.

Inputs

  • id (required) — Internal numeric identifier of the Inventory Item to update.
  • additionalFields — Map of Inventory Item attributes to be updated. Each key corresponds to a NetSuite field (e.g., itemId, price, quantityOnHand, etc.). Only fields supplied are sent in the PATCH request.
  • customFields — Array of custom field definitions. Each entry specifies the custom field name, data type, and value to be written to the item record.

Output shape

Returns the updated Inventory Item record with all properties populated by NetSuite. If the node’s Debug Mode option is enabled, the output also includes the full HTTP request and response objects for diagnostic purposes.

Only fields sent in the request appear in the response; unspecified fields retain their existing values. Validation errors from NetSuite are returned as an error response.

Examples

Example 1: Update the item’s name and description

Set id to the numeric ID, additionalFields to {"itemId":"New Item Name","description":"Updated description"}.

Example 2: Adjust inventory quantity and prevent further sales

Set id to the item ID, additionalFields to {"quantityOnHand":150,"isInactive":true}.

Example 3: Add a custom field to the item

Set id to the item ID, customFields to an array with an entry like {"fieldName":"custitem_example","fieldType":"string","value":"ExampleValue"}.

Discussion