Manufacturing Operation Task

A manufacturing operation task record exposes a manufacturing operation task to REST web services.

This record:

The REST API Browser includes information about the field names and field types of the manufacturing operation task record, and about the HTTP methods, request parameters, and operations available to this record. For details, see the REST API Browser’s manufacturingOperationTask reference page.

For information about using the REST API Browser, see The REST API Browser.

Record IDs

The record ID for a manufacturing operation task REST record is manufacturingOperationTask.

Prerequisites

You must enable the Manufacturing Routing and Work Center features before you can use this record through REST web services.

Code Samples

The following samples show common use cases for manufacturing operation tasks. The example ID is 4.

Creating a Manufacturing Operation Task Using a POST Request

              POST https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/manufacturingOperationTask
{
   "manufacturingWorkCenter" : {"id":"39"},
   "manufacturingCostTemplate" : {"id": 4},
   "title": "My operation",
   "operationSequence": 60,
   "setupTime": 6,
   "runRate": 4,
   "machineResources": 1,
   "laborResources": 1,
   "workOrder": {
       "id": 159
   }
} 

            

Retrieving a Manufacturing Operation Task Using a GET Request

              GET https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/manufacturingOperationTask/4 

            

Retrieving a Predecessor Using a GET Request

              GET https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/manufacturingOperationTask/238/predecessor 

            

Updating a Manufacturing Operation Task Using a PATCH Request

The following code sample shows how to add an entry to the cost detail sublist.

              PATCH https://demo123.suitetalk.api.snap.netsuite.com/services/rest/record/v1/manufacturingOperationTask/4
{
    "costDetail": {
        "items": [
            {
                "costCategory" : {"id": 1},
                "item" : {"id": 72}
            }
        ]
    }  
} 

            

Related Topics

REST Web Services Supported Records
SuiteTalk REST Web Services Overview and Setup
Working with Records
NetSuite Record Structure
The REST API Browser

General Notices