NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Location → Insert or update record

AI-generated

Summary

Insert or update a Location record in NetSuite by specifying the record's external identifier and providing various details as input fields.

Inputs

  • id (required) — The external identifier of the Location record to create or update.
  • name — The name of the Location for display in lists on records and transactions.
  • additionalFields — A collection of optional fields to specify detailed Location data, including addresses, coordinates, subsidiaries, time zones, inventory balances, and other configurable properties.
  • customFields — A collection of custom fields to set on the Location record, with support for various data types like boolean, dateTime, multiSelect, number, select, and string.
  • isDebugMode — Boolean flag to include full request and response information in the output for debugging purposes.
  • authMethod — Choose the authentication method for NetSuite API calls, either OAuth1 or OAuth2.
  • Prefer — Specifies server behavior; for example, 'respond-async' to execute the request asynchronously.
  • replace — Comma-delimited sublist names on the record to replace completely with the provided lines during update.
  • replaceSelectedFields — If true, marks all fields to be deleted in the update as included in the 'replace' parameter.
  • X-NetSuite-Idempotency-Key — User-defined unique idempotency key for asynchronous requests to ensure single execution.
  • X-NetSuite-PropertyNameValidation — Sets strictness level for property name validation: Error, Warning, Ignore, or default.
  • X-NetSuite-PropertyValueValidation — Sets strictness level for property value validation: Error, Warning, Ignore, or default.

Output shape

a single updated or created Location record object

The operation returns the Location record data after insert or update. If 'isDebugMode' is enabled, additional request and response details are included in the output. Errors during the operation will be indicated in the response.

Links

Discussion