Create assemblies

post

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

Request

Path Parameters
  • The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
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 : WorkOrderAssemblyComponentDFF
Type: array
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
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
Nested Schema : WorkOrderAssemblyComponentDFF
Type: array
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 : workOrders-WorkOrderAssemblyComponent-WorkOrderAssemblyComponentDFF-item-response
Type: object
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