NetSuite REST Azerion icon

NetSuite REST Azerion

Call NetSuite SuiteTalk REST operations.

Actions981

Department → Update record

AI-generated

Summary

Updates a NetSuite department record via PATCH /department/{id}.

Inputs

  • id (required) — Internal identifier for the department record to update.
  • name — Enter a name for this department (max 60 alphanumeric characters).
  • isInactive — Check to inactivate this department record; inactive departments do not show in lists on records and transactions.
  • externalId — External identifier for the department.
  • fullName — Full name for this department.
  • includeChildren — Associate the department with all sub-subsidiaries associated with each subsidiary selected in the Subsidiary field.
  • parent — Department parent, specified by internal identifier or external identifier.
  • subsidiary — Subsidiary associated with the department, specified by internal identifier or external identifier.
  • additionalFields — Additional fields for the department, including class translation with language and locale selections.
  • customFields — List of custom fields to update on the department record.
  • isDebugMode — Whether to include full request and response info in the output.
  • authMethod — Authentication method; options are OAuth1 or OAuth2 (default: OAuth1).
  • X_NetSuite_Idempotency_Key — User-defined unique idempotency key (RFC 4122 UUID format) to ensure asynchronous requests execute only once.
  • X_NetSuite_PropertyNameValidation — Sets strictness of property name validation: Error, Warning, or Ignore.
  • X_NetSuite_PropertyValueValidation — Sets strictness of property value validation: Error, Warning, or Ignore.
  • replace — Comma-delimited names of sublists on this record; all lines in named sublists will be replaced with lines specified in the request.
  • replaceSelectedFields — If true, all fields to be deleted in the update request must be included in the 'replace' query parameter.
  • Prefer — Execute the request asynchronously if 'respond-async' is selected.

Output shape

Updated department record.

If isDebugMode is enabled, full request and response information is included in the n8n item output. Authentication uses the selected OAuth method. The department's internal ID (id) is required as the path parameter.

Links

Discussion