NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Merchandise Hierarchy Version → Update record

AI-generated

Summary

Update a Merchandise Hierarchy Version record in NetSuite by specifying its internal identifier and the desired fields to modify.

Inputs

  • Id (required) — Internal identifier of the Merchandise Hierarchy Version record to update.
  • Additional Fields — Optional fields to update on the Merchandise Hierarchy Version record, including Description, End Date, External ID, Hierarchylevels, Internal ID, Name, Prefer header for async execution, Reference Name, Replace sublists, Replace Selected Fields flag, Start Date, Idempotency Key, and property validation options.
  • Custom Fields — Custom fields to update on the Merchandise Hierarchy Version record, with support for multiple field types including boolean, dateTime, multiSelect, number, select, and string.
  • Debug Mode — Whether to include full request and response details in the output for debugging purposes.

Output shape

a single JSON object representing the updated Merchandise Hierarchy Version record or, if Debug Mode is enabled, includes full request and response information.

The update is performed via a PATCH request to /merchandiseHierarchyVersion/{id}. Optional fields and custom fields are sent as provided. If Prefer is set to 'respond-async', the request will be executed asynchronously and will return accordingly. Custom fields require a valid fieldName and fieldType. Ensure the Id input correctly identifies the record to update.

Examples

Example 1: Update the description and name of a Merchandise Hierarchy Version record

Set Id to the record's internal identifier, provide new values in Additional Fields (Name and Description), leave other parameters default.

Example 2: Update custom fields on a Merchandise Hierarchy Version record

Set Id, add Custom Fields with appropriate field names, types, and values to modify custom attributes on the record.

Discussion