Create all inspection actions
/fscmRestApi/resources/11.13.18.05/inspectionActions
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/json
object
-
ActionStatus: string
Maximum Length:
255
Value that indicates the action creation status. A Success status means that the operation performed successfully. -
inspectionEventActions: array
Inspection Event Actions
Title:
Inspection Event Actions
The Inspection Actions resource is used to view inspection actions for the inspection event. -
InspectionPlanId: integer
Value that indicates the inspection plan ID that's used for the action creation process.
-
InspectionPlanName: string
Maximum Length:
255
Value that identifies the inspection plan name that's used for the action creation process. -
IpEventId: integer
Value that uniquely identifies the inspection event.
-
MessageText: string
Maximum Length:
255
Error message that's returned if the action creation fails.
array
Inspection Event Actions
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
-
ActionStatus: string
Maximum Length:
255
Value that indicates the action creation status. A Success status means that the operation performed successfully. -
inspectionEventActions: array
Inspection Event Actions
Title:
Inspection Event Actions
The Inspection Actions resource is used to view inspection actions for the inspection event. -
InspectionPlanId: integer
Value that indicates the inspection plan ID that's used for the action creation process.
-
InspectionPlanName: string
Maximum Length:
255
Value that identifies the inspection plan name that's used for the action creation process. -
IpEventId: integer
Value that uniquely identifies the inspection event.
-
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
MessageText: string
Maximum Length:
255
Error message that's returned if the action creation fails.
array
Inspection Event Actions
array
Links
object
-
ActionTaken: string
Read Only:
true
Maximum Length:32
Value that indicates the action taken. -
AsActionTakenDate: string
(date-time)
Read Only:
true
Date and time that action was executed. -
IpEventId: integer
Read Only:
true
Value that uniquely identifies the inspection event. -
IssueDescription: string
Read Only:
true
Maximum Length:3999
Description of quality issue created by the action. -
IssueId: number
Read Only:
true
Value that uniquely identifies the quality issue created by the action. -
IssueName: string
Read Only:
true
Maximum Length:400
Name of the quality issue created by the action. -
IssueNumber: string
Read Only:
true
Maximum Length:100
Quality issue number generated by the action. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
MaterialStatusLevel: string
Read Only:
true
Maximum Length:32
Value that indicates the level of the material status change. -
MessageName: string
Read Only:
true
Maximum Length:100
Message code returned by the system based on the action. -
MessageText: string
Read Only:
true
Maximum Length:2400
Message details for the action. -
Notifiers: string
Read Only:
true
Maximum Length:4000
List of notification recipients. -
SampleId: number
Read Only:
true
Value that uniquely identifies the sample to inspect. -
SampleNumber: string
Read Only:
true
Maximum Length:80
Number that identifies the sample being inspected for a nonserial item. -
SampleResultId: number
Read Only:
true
Value that uniquely identifies the result of the sample inspection. -
SerialNumber: string
Read Only:
true
Maximum Length:80
Number that identifies the serial being inspected. -
StatusCode: string
Read Only:
true
Maximum Length:80
New material status based on this action. -
StatusId: integer
(int64)
Read Only:
true
Value that uniquely identifies the new material status based on the action. -
WorkOrderId: integer
(int64)
Read Only:
true
Value that uniquely identifies the work order created by the action. -
WorkOrderNumber: string
Read Only:
true
Maximum Length:120
Work order number created by the action.
array
Links
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed 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.
- inspectionEventActions
-
Operation: /fscmRestApi/resources/11.13.18.05/inspectionActions/{IpEventId}/child/inspectionEventActionsParameters:
- IpEventId:
$request.path.IpEventId
The Inspection Actions resource is used to view inspection actions for the inspection event. - IpEventId:
Examples
This example describes how to create actions for an inspection by executing action rules defined in a plan.
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/inspectionActions"
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.
{ "IpEventId": 300100591212388 }
Example Response Body
The following example includes the contents of the response body in JSON format:
{ "IpEventId": 300100591212388, "InspectionPlanId": 300100591205147, "InspectionPlanName": "QA-2023-18 Demo Plan", "ActionStatus": "SUCCESS", "MessageText": null, "links": [ { "rel": "self", "href": "https://servername/fscmRestApi/resources/version/inspectionActions/300100591212388", "name": "inspectionActions", "kind": "item" }, { "rel": "canonical", "href": "https://servername/fscmRestApi/resources/version/inspectionActions/300100591212388", "name": "inspectionActions", "kind": "item" }, { "rel": "child", "href": "https://servername/fscmRestApi/resources/version/inspectionActions/300100591212388/child/inspectionEventActions", "name": "inspectionEventActions", "kind": "collection" } ] }