Create assemblies

post

/fscmRestApi/resources/11.13.18.05/workOrders/{WorkOrderId}/child/WorkOrderAssemblyComponent

Request

Path Parameters
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
  • Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Lots for Assemblies
Type: array
Title: Lots for Assemblies
The Lots for Assemblies resource manages the lot that the application issued for the assembly that the rework work order uses.
Show Source
Nested Schema : Serials for Assemblies
Type: array
Title: Serials for Assemblies
The Serials for Assemblies resource manages serial that the application issued for the assembly that the rework work order uses.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : workOrders-WorkOrderAssemblyComponent-item-response
Type: object
Show Source
  • Value that uniquely identifies the item, product, or assembly in the inventory organization.
  • Title: Issued Quantity
    Quantity of the reworked assembly that the application issues for the operation when it releases the work order.
  • Read Only: true
    Maximum Length: 300
    Number that identifies the item, which is an output of the work order.
  • Links
  • Title: Name
    Read Only: true
    Maximum Length: 120
    Name of the operation.
  • Title: Operation Sequence
    Read Only: true
    Sequence to use when performing the work order operations.
  • Value that uniquely identifies the inventory organization that's enabled for manufacturing. It is a primary key of the inventory organization.
  • Title: Required Quantity
    Planned quantity of the reworked assembly for the work order. This is equal to the work order quantity.
  • Title: Reserved Quantity
    Read Only: true
    Reserved quantity of the reworked assembly for the work order.
  • Maximum Length: 255
    Locator in the subinventory to use, by default, when the plant gets the material for rework.
  • Title: Supply Locator
    Value that uniquely identifies the locator. It is a primary key that the application generates when it creates the locator.
  • Title: Supply Subinventory
    Maximum Length: 20
    Subinventory to use, by default, when the plant gets the material for rework.
  • Title: UOM Name
    Read Only: true
    Maximum Length: 25
    Unit of measure that the item uses for the reworked assembly. It is the primary unit of measure.
  • Value that uniquely identifies the first count point operation of the rework that references this material. This material is an assembly that the work order will rework. It is a primary key of the work order operation.
  • Value that uniquely identifies the rework that references the material. This material is an assembly that the work order will rework. It is a primary key of the material.
  • Lots for Assemblies
    Title: Lots for Assemblies
    The Lots for Assemblies resource manages the lot that the application issued for the assembly that the rework work order uses.
  • Serials for Assemblies
    Title: Serials for Assemblies
    The Serials for Assemblies resource manages serial that the application issued for the assembly that the rework work order uses.
  • Value that uniquely identifies the reworked work order. It is a primary key of the rework work order.
Nested Schema : Lots for Assemblies
Type: array
Title: Lots for Assemblies
The Lots for Assemblies resource manages the lot that the application issued for the assembly that the rework work order uses.
Show Source
Nested Schema : Serials for Assemblies
Type: array
Title: Serials for Assemblies
The Serials for Assemblies resource manages serial that the application issued for the assembly that the rework work order uses.
Show Source
Nested Schema : workOrders-WorkOrderAssemblyComponent-WorkOrderAssemblyComponentLot-item-response
Type: object
Show Source
Nested Schema : workOrders-WorkOrderAssemblyComponent-WorkOrderAssemblyComponentSerial-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to create one assembly in one work order.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.action+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/workOrders"

Note that you use the action for the parent resource in the cURL command. You specify child details in the request payload. For example, you use a POST on the parent workOrders, and specify details for child WorkOrderAssemblyComponent in the request payload.

Example Request Body

The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.

{
"WorkOrderType":"REWORK",
"OrganizationId":207,
"InventoryItemId":300100036689169,
"PlannedStartQuantity":4,
"PlannedStartDate":"2017-03-16T08:30:00-05:00",
"WorkDefinitionId":300100123758868,
"ExplosionFlag":true,
"WorkOrderAssemblyComponent": 
[{
   "SupplySubinventory":"ABCSUB01",
   "SupplyLocatorId":3134
}]
}

Example Response Body

The following example includes the contents of the response body in JSON format:

{
"OrganizationId": 207,
"OrganizationCode": null,
"OrganizationName": null,
"WorkOrderId": 300100124132739,
"WorkOrderNumber": "M1-1238",
"WorkOrderDescription": null,
"WorkMethodId": 300100070832877,
"WorkMethodCode": null,
"WorkOrderType": "REWORK",
"WorkOrderTypeDescription": null,
"WorkOrderSubType": null,
"WorkOrderSubTypeDescription": null,
"InventoryItemId": 300100036689169,
"ItemNumber": "MFG-PL-PROD1",
"Description": "Plain Product with Supply Type of Push",
"ItemRevision": "A",
"ItemStructureName": null,
"TransformFromItemId": null,
"TransformFromItemNumber": null,
"WorkDefinitionAsOfDate": "2017-10-15T07:47:44+00:00",
"WorkDefinitionId": 300100123758868,
"WorkDefinitionVersionId": 300100123758869,
"WorkDefinitionVersionNumber": null,
"WorkDefinitionCode": null,
"WorkDefinitionName": null,
"WorkOrderPriority": null,
"WorkOrderStatusId": 10005,
"WorkOrderStatusName": "Unreleased",
"WorkOrderStatusCode": "ORA_UNRELEASED",
"WorkOrderSystemStatusCode": "UNRELEASED",
"SchedulingMethod": "DEFAULT_SCHEDULER",
"PlannedStartQuantity": 4,
"CompletedQuantity": null,
"ScrappedQuantity": null,
"RejectedQuantity": null,
"NettableSupplyQuantityOverride": null,
"UOMCode": "Ea",
"UnitOfMeasure": "Each",
"FirmPlannedFlag": false,
"PlannedStartDate": "2017-03-16T13:30:00+00:00",
"PlannedCompletionDate": "2017-03-16T13:30:00+00:00",
"ActualStartDate": null,
"ActualCompletionDate": null,
"ReleasedDate": null,
"ClosedDate": null,
"CanceledDate": null,
"DelayStatus": 1,
"WorkOrderDate": null,
"CanceledReason": null,
"OvercomplToleranceType": null,
"OvercomplToleranceValue": null,
"OvercomplToleranceTypeDescription": null,
"SupplyType": "7",
"SupplyTypeDescription": null,
"CompletionSubinventoryCode": "Stores",
"CompletionLocatorId": null,
"CompletionLocator": null,
"SerialTrackingFlag": false,
"BackToBackFlag": false,
"ContractMfgFlag": false,
"OrchestrationCode": null,
"InterfaceSourceCode": null,
"ScoSupplyOrderId": null,
"CmPOHeaderId": null,
"CmPOLineId": null,
"CmPOLineLocId": null,
"OrderLessFlag": false,
"SourceSystemType": null,
"SourceSystemId": null,
"SourceHeaderReference": null,
"SourceHeaderReferenceId": null,
"SourceLineReference": null,
"SourceLineReferenceId": null,
"ExplosionFlag": true,
"WorkOrderAssemblyComponent": [
  
{
"OrganizationId": 207,
"WorkOrderId": 300100124132739,
"WoOperationId": 300100124132740,
"OperationSequenceNumber": null,
"OperationName": null,
"WoOperationMaterialId": 300100124132746,
"InventoryItemId": 300100036689169,
"ItemNumber": "MFG-PL-PROD1",
"Quantity": 4,
"UnitOfMeasure": null,
"SupplySubinventory": "ABCSUB01",
"SupplyLocatorId": 3134,
"SupplyLocator": null,
"IssuedQuantity": null,
...
}
Back to Top