NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Units Type → Insert or update record

AI-generated

Summary

Insert or update a Units Type record in NetSuite by specifying its external identifier and desired fields.

Inputs

  • Id (required) — External identifier of the Units Type record to insert or update.
  • Debug Mode — Whether to include full request and response information in the output.
  • Additional Fields — Optional fields to specify properties of the Units Type such as External ID, Inactive status, Internal ID, Last Modified Date, Prefer header for asynchronous request execution, Reference Name, Replace options for sublists, Type Name, unit of measure details, idempotency key, and validation strictness settings.
  • Custom Fields — List of custom fields to include in the Units Type record, supporting multiple field types (boolean, dateTime, multiSelect, number, select, string) with their corresponding values.

Output shape

a single record representing the inserted or updated Units Type, optionally with full request and response details if Debug Mode is enabled

The output includes the resulting Units Type record data from NetSuite; enabling Debug Mode adds detailed request and response information. This operation uses the HTTP PUT method on the /unitsType/{id} endpoint. The 'Id' input is mandatory to identify which Units Type record to insert or update.

Examples

Example 1: Insert a new Units Type record with name 'Length' and units (Inch, Foot)

Set 'Id' to the external ID, provide 'name' as 'Length' in Additional Fields, and define units under 'uom.items' with their respective names, abbreviations, and conversion rates.

Example 2: Update an existing Units Type record to mark it inactive

Set 'Id' to the external ID of the existing record, and in Additional Fields set 'Inactive' to true to inactivate it.

Discussion