NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Merchandise Hierarchy Level → Insert or update record

AI-generated

Summary

Insert or update a Merchandise Hierarchy Level record in NetSuite by specifying its external identifier and optional fields.

Inputs

  • Id (required) — External identifier of the Merchandise Hierarchy Level to insert or update.
  • Additional Fields — Optional fields to set on the Merchandise Hierarchy Level, including Description, External ID, Name, Insertbefore, Internal ID, Rank (read-only), Reference Name, and several headers to control API behavior such as async execution preference, idempotency key, and validation strictness.
  • Custom Fields — Custom fields to include with the Merchandise Hierarchy Level record, specifying field name, type, and value for each custom field.
  • Debug Mode — Whether to include full request and response details in the output for debugging purposes.

Output shape

a single record representing the inserted or updated Merchandise Hierarchy Level

The output includes the response from the NetSuite API after upserting the record. If Debug Mode is enabled, detailed request and response information is included. Custom fields and additional fields provided are applied to the record. Errors during execution will produce error outputs.

Examples

Example 1: Insert or update a Merchandise Hierarchy Level with a specific external ID and name.

Set 'Id' to the external identifier, and provide 'Name' under Additional Fields; optionally include other fields such as 'Description' or 'Custom Fields' as needed.

Discussion