Create assemblies
/fscmRestApi/resources/11.13.18.05/workOrders/{WorkOrderId}/child/WorkOrderAssemblyComponent
Request
-
WorkOrderId(required): integer(int64)
Value that uniquely identifies the work order. It is a primary key that the application generates when it creates the work order.
-
Metadata-Context: string
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".
-
REST-Framework-Version: string
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.
-
Upsert-Mode: string
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.
- application/json
object-
InventoryItemId(required): integer
(int64)
Value that uniquely identifies the item, product, or assembly in the inventory organization.
-
IssuedQuantity: number
Title:
Issued QuantityQuantity of the reworked assembly that the application issues for the operation when it releases the work order. -
OrganizationId(required): integer
(int64)
Value that uniquely identifies the inventory organization that's enabled for manufacturing. It is a primary key of the inventory organization.
-
Quantity(required): number
Title:
Required QuantityPlanned quantity of the reworked assembly for the work order. This is equal to the work order quantity. -
SupplyLocator: string
Maximum Length:
255Locator in the subinventory to use, by default, when the plant gets the material for rework. -
SupplyLocatorId: integer
(int64)
Title:
Supply LocatorValue that uniquely identifies the locator. It is a primary key that the application generates when it creates the locator. -
SupplySubinventory: string
Title:
Supply SubinventoryMaximum Length:20Subinventory to use, by default, when the plant gets the material for rework. -
WoOperationId: integer
(int64)
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.
-
WoOperationMaterialId: integer
(int64)
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.
-
WorkOrderAssemblyComponentLot: array
Lots for Assemblies
Title:
Lots for AssembliesThe Lots for Assemblies resource manages the lot that the application issued for the assembly that the rework work order uses. -
WorkOrderAssemblyComponentSerial: array
Serials for Assemblies
Title:
Serials for AssembliesThe Serials for Assemblies resource manages serial that the application issued for the assembly that the rework work order uses. -
WorkOrderId: integer
(int64)
Value that uniquely identifies the reworked work order. It is a primary key of the rework work order.
arrayLots for AssembliesarraySerials for Assembliesobject-
AssociatedQuantity: number
Title:
QuantityQuantity for the lot number to issue for the reworked work order. -
LotNumber: string
Title:
Lot NumberMaximum Length:80Lot number of the reworked assembly. -
WoOperationMaterialId: integer
(int64)
Value that uniquely identifies the reworked assembly. It is a primary key that the application generates when it creates the item.
object-
LotNumber: string
Title:
Lot NumberLot number of the reworked assembly. -
SerialNumber: string
Title:
Serial NumberMaximum Length:80Serial number that identifies the reworked assembly. -
WoOperationMaterialId: integer
(int64)
Value that uniquely identifies the reworked assembly. It is a primary key that the application generates when it creates the item.
Response
- application/json
Default Response
-
Metadata-Context:
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".
-
REST-Framework-Version:
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.
object-
InventoryItemId: integer
(int64)
Value that uniquely identifies the item, product, or assembly in the inventory organization.
-
IssuedQuantity: number
Title:
Issued QuantityQuantity of the reworked assembly that the application issues for the operation when it releases the work order. -
ItemNumber: string
Read Only:
trueMaximum Length:300Number that identifies the item, which is an output of the work order. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
OperationName: string
Title:
NameRead Only:trueMaximum Length:120Name of the operation. -
OperationSequenceNumber: number
Title:
Operation SequenceRead Only:trueSequence to use when performing the work order operations. -
OrganizationId: integer
(int64)
Value that uniquely identifies the inventory organization that's enabled for manufacturing. It is a primary key of the inventory organization.
-
Quantity: number
Title:
Required QuantityPlanned quantity of the reworked assembly for the work order. This is equal to the work order quantity. -
ReservedQuantity: number
Title:
Reserved QuantityRead Only:trueReserved quantity of the reworked assembly for the work order. -
SupplyLocator: string
Maximum Length:
255Locator in the subinventory to use, by default, when the plant gets the material for rework. -
SupplyLocatorId: integer
(int64)
Title:
Supply LocatorValue that uniquely identifies the locator. It is a primary key that the application generates when it creates the locator. -
SupplySubinventory: string
Title:
Supply SubinventoryMaximum Length:20Subinventory to use, by default, when the plant gets the material for rework. -
UnitOfMeasure: string
Title:
UOM NameRead Only:trueMaximum Length:25Unit of measure that the item uses for the reworked assembly. It is the primary unit of measure. -
WoOperationId: integer
(int64)
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.
-
WoOperationMaterialId: integer
(int64)
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.
-
WorkOrderAssemblyComponentLot: array
Lots for Assemblies
Title:
Lots for AssembliesThe Lots for Assemblies resource manages the lot that the application issued for the assembly that the rework work order uses. -
WorkOrderAssemblyComponentSerial: array
Serials for Assemblies
Title:
Serials for AssembliesThe Serials for Assemblies resource manages serial that the application issued for the assembly that the rework work order uses. -
WorkOrderId: integer
(int64)
Value that uniquely identifies the reworked work order. It is a primary key of the rework work order.
arrayLinksarrayLots for AssembliesarraySerials for Assembliesobject-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
object-
AssociatedQuantity: number
Title:
QuantityQuantity for the lot number to issue for the reworked work order. -
IssuedQuantity: number
Read Only:
trueQuantity of the lot for the reworked assembly that the application uses for the operation when it releases the work order. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
LotNumber: string
Title:
Lot NumberMaximum Length:80Lot number of the reworked assembly. -
WoOperationMaterialId: integer
(int64)
Value that uniquely identifies the reworked assembly. It is a primary key that the application generates when it creates the item.
-
WoOperationMaterialLotId: integer
(int64)
Read Only:
trueValue that uniquely identifies the lot of the reworked assembly. It is a primary key that the application generates when it creates a lot. -
WorkOrderId: integer
(int64)
Read Only:
trueValue that uniquely identifies the work order. It is a primary key that the application generates when it creates the work order.
arrayLinksobject-
InventoryItemId: integer
(int64)
Read Only:
trueValue that uniquely identifies the item, product, or assembly in the inventory organization. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
LotNumber: string
Title:
Lot NumberLot number of the reworked assembly. -
OperationName: string
Title:
OperationRead Only:trueMaximum Length:120Name of the operation that references the serial number. -
OperationSequenceNumber: number
Title:
Operation SequenceRead Only:trueSequence to follow when performing work order operations that reference the serial number. -
OrganizationId: integer
(int64)
Read Only:
trueValue that uniquely identifies the inventory organization that's enabled for manufacturing. It is a primary key of the inventory organization. -
SerialIssued: string
Read Only:
trueMaximum Length:255Status of the serial issued to the work order. -
SerialNumber: string
Title:
Serial NumberMaximum Length:80Serial number that identifies the reworked assembly. -
SerialReservationStatus: string
Title:
ReservedRead Only:trueMaximum Length:255Reservation status of the work order. -
SerialStatus: string
Title:
StatusRead Only:trueMaximum Length:30Status of the serial number that identifies the assembly referenced by this operation. -
WoOperationMaterialId: integer
(int64)
Value that uniquely identifies the reworked assembly. It is a primary key that the application generates when it creates the item.
-
WoOperationMaterialLotId: integer
(int64)
Read Only:
trueValue that uniquely identifies the lot of the reworked assembly. It is a primary key that the application generates when it creates a lot. -
WoOperationMaterialSerialId: integer
(int64)
Read Only:
trueValue that uniquely identifies the serial of the reworked assembly. It is a primary key that the application generates when it creates a serial. -
WorkCenterCode: string
Title:
CodeRead Only:trueMaximum Length:30Abbreviation that identifies the work center. -
WorkCenterId: integer
(int64)
Read Only:
trueValue that uniquely identifies the work center. It is the primary key generated by the application when the work center is created. -
WorkCenterName: string
Title:
Work CenterRead Only:trueMaximum Length:120Name of the work center. -
WorkOrderId: integer
(int64)
Read Only:
trueValue that uniquely identifies the work order. It is a primary key that the application generates when it creates the work order. -
WorkOrderOperationId: integer
(int64)
Read Only:
trueValue that uniquely identifies the work order operation. It is the primary key generated by the application when the work order operation is created.
arrayLinks- WorkOrderAssemblyComponentLot
-
Parameters:
- WoOperationMaterialId:
$request.path.WoOperationMaterialId - WorkOrderId:
$request.path.WorkOrderId
The Lots for Assemblies resource manages the lot that the application issued for the assembly that the rework work order uses. - WoOperationMaterialId:
- WorkOrderAssemblyComponentSerial
-
Parameters:
- WoOperationMaterialId:
$request.path.WoOperationMaterialId - WorkOrderId:
$request.path.WorkOrderId
The Serials for Assemblies resource manages serial that the application issued for the assembly that the rework work order uses. - WoOperationMaterialId:
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,
...
}