Generate extensible work order traveller
/fscmRestApi/resources/11.13.18.05/processWorkOrders/action/invokeGenerateExtensibleWorkOrderTravelerESS
Request
-
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.
- application/vnd.oracle.adf.action+json
object
-
organizationId: string
Value that uniquely Identifies the organization.
-
workOrderNumbers: string
List of comma-separated work order numbers.
Response
- application/json
- application/vnd.oracle.adf.actionresult+json
Default Response
object
-
result(required): string
Value that uniquely Identifies the Generate Extensible Work Order Traveller scheduled process.
Examples
This example describes how to initiate the Generate Extensible Work Order Traveler scheduled process to generate a PDF for the work orders passed in the REST request. The client sends the organization identifier and comma-separated list of the work order numbers. The application then invokes the scheduled process that generates the PDF for the work orders passed in the request.
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.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/processWorkOrders/action/invokeGenerateExtensibleWorkOrderTravelerESS"
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 updates.
{ "name": "invokeGenerateExtensibleWorkOrderTravelerESS", "parameters": [ { "organizationId": "207" }, { "workOrderNumbers": "M1-1071,M1-1076,M1-1078" } ] }
Example Response Body
The following example includes the contents of the response body in JSON format:
{ "result": "128288" }