NetSuite REST icon

NetSuite REST

Call NetSuite SuiteTalk REST operations.

Actions979

Job Type → Insert record

AI-generated

Summary

Insert a new Job Type record in NetSuite with optional additional and custom fields, supporting asynchronous request preferences and detailed debug output.

Inputs

  • Debug Mode — Set to true to include full request and response details in the output for troubleshooting.
  • Additional Fields — Optional properties for the Job Type record such as Campaign Type (name), External ID, Inactive status, Internal ID, Parent reference (by internal or external ID), Prefer header for async execution, Reference Name, sublist Replace names, idempotency key for async requests, and validation strictness controls.
  • Custom Fields — Optional list of custom fields to set on the Job Type record. Each custom field requires a field name, field type (Boolean, Date Time, Multi Select, Number, Select, or String), and a corresponding value (typed accordingly).

Output shape

a single JSON object representing the newly created Job Type record or the full raw request and response if Debug Mode is enabled.

If Debug Mode is enabled, output includes complete HTTP request and response details. The operation supports asynchronous execution via the 'Prefer' option with 'respond-async', and accepts an idempotency key for safe retries in async mode.

Examples

Example 1: Create a Job Type named 'Installation' with a custom string field and receive detailed debug information.

Debug Mode enabled; Additional Fields with Campaign Type set to 'Installation'; Custom Fields include one named field with type String and its value.

Discussion