NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Cost Category → Update record

AI-generated

Summary

Update a Cost Category record.

Inputs

  • isDebugMode — When true, outputs raw HTTP request and response along with the normal response.
  • id (required) — Internal numeric ID of the Cost Category to update.
  • additionalFields — Optional fields to update, such as Name, External ID, Inactive flag, Item Cost Type, Prefer, replace, and various X‑NetSuite headers.
  • customFields — Custom field values to set on the record; each entry specifies fieldName, fieldType, and value.

Output shape

an object representing the updated Cost Category record

If Debug Mode is enabled the output includes rawRequest and rawResponse. If the Prefer option respond-async is used the node may return a minimal response with an operationId to poll later.

Examples

Example 1: Change the name of an existing Cost Category

id: 123, additionalFields: { name: "New Cost Category" }

Example 2: Mark a Cost Category as inactive

id: 456, additionalFields: { isInactive: true }

Example 3: Set a custom boolean field to true

id: 789, customFields: [ { fieldName: "MyBoolean", fieldType: "boolean", value: true } ]

Discussion