Create all inspection actions
/fscmRestApi/resources/11.13.18.05/inspectionActions
Request
-
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.
- application/json
object-
ActionStatus: string
Maximum Length:
255Value that indicates the action creation status. A Success status means that the operation performed successfully. -
inspectionEventActions: array
Inspection Event Actions
Title:
Inspection Event ActionsThe 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:
255Value 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:
255Error message that's returned if the action creation fails.
arrayInspection Event ActionsResponse
- 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:
255Value that indicates the action creation status. A Success status means that the operation performed successfully. -
inspectionEventActions: array
Inspection Event Actions
Title:
Inspection Event ActionsThe 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:
255Value 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:
LinksThe link relations associated with the resource instance. -
MessageText: string
Maximum Length:
255Error message that's returned if the action creation fails.
arrayInspection Event ActionsarrayLinksobject-
ActionTaken: string
Read Only:
trueMaximum Length:32Value that indicates the action taken. -
AsActionTakenDate: string
(date-time)
Read Only:
trueDate and time that action was executed. -
IpEventId: integer
Read Only:
trueValue that uniquely identifies the inspection event. -
IssueDescription: string
Read Only:
trueMaximum Length:3999Description of quality issue created by the action. -
IssueId: number
Read Only:
trueValue that uniquely identifies the quality issue created by the action. -
IssueName: string
Read Only:
trueMaximum Length:400Name of the quality issue created by the action. -
IssueNumber: string
Read Only:
trueMaximum Length:100Quality issue number generated by the action. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MaterialStatusLevel: string
Read Only:
trueMaximum Length:32Value that indicates the level of the material status change. -
MessageName: string
Read Only:
trueMaximum Length:100Message code returned by the system based on the action. -
MessageText: string
Read Only:
trueMaximum Length:2400Message details for the action. -
Notifiers: string
Read Only:
trueMaximum Length:4000List of notification recipients. -
SampleId: number
Read Only:
trueValue that uniquely identifies the sample to inspect. -
SampleNumber: string
Read Only:
trueMaximum Length:80Number that identifies the sample being inspected for a nonserial item. -
SampleResultId: number
Read Only:
trueValue that uniquely identifies the result of the sample inspection. -
SerialNumber: string
Read Only:
trueMaximum Length:80Number that identifies the serial being inspected. -
StatusCode: string
Read Only:
trueMaximum Length:80New material status based on this action. -
StatusId: integer
(int64)
Read Only:
trueValue that uniquely identifies the new material status based on the action. -
WorkOrderId: integer
(int64)
Read Only:
trueValue that uniquely identifies the work order created by the action. -
WorkOrderNumber: string
Read Only:
trueMaximum Length:120Work order number created by the action.
arrayLinksobject-
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.
- 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"
}
]
}