Create one event

post

/fscmRestApi/resources/11.13.18.05/inspectionEvents

Request

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 : Result Attachments
Type: array
Title: Result Attachments
The Result Attachments resource manages the attachments for the sample results.
Show Source
Nested Schema : Event Dispositions
Type: array
Title: Event Dispositions
The Event Dispositions resource manages event dispositions.
Show Source
Nested Schema : Inspection Event Actions
Type: array
Title: Inspection Event Actions
The Inspection Actions resource is used to view inspection actions for the inspection event.
Show Source
Nested Schema : Samples
Type: array
Title: Samples
The Samples resource manages sample items.
Show Source
Nested Schema : inspectionEvents-Attachments-item-post-request
Type: object
Show Source
Nested Schema : inspectionEvents-EventDisposition-item-post-request
Type: object
Show Source
Nested Schema : inspectionEvents-inspectionEventActions-item-post-request
Type: object
Show Source
Nested Schema : inspectionEvents-Sample-item-post-request
Type: object
Show Source
Nested Schema : Sample Dispositions
Type: array
Title: Sample Dispositions
The Sample Dispositions resource manages sample item dispositions.
Show Source
Nested Schema : inspectionEvents-Sample-SampleDisposition-item-post-request
Type: object
Show Source
Nested Schema : Sample Results
Type: array
Title: Sample Results
The Sample Results resource manages the sample results for an item.
Show Source
Nested Schema : inspectionEvents-Sample-SampleDisposition-SampleResult-item-post-request
Type: object
Show Source
Nested Schema : Result Attachments
Type: array
Title: Result Attachments
The Result Attachments resource manages the attachments for the sample results.
Show Source
Nested Schema : Result Evaluations
Type: array
Title: Result Evaluations
The Result Evaluations resource manages the evaluation results.
Show Source
Nested Schema : inspectionEvents-Sample-SampleDisposition-SampleResult-Attachments-item-post-request
Type: object
Show Source
Nested Schema : inspectionEvents-Sample-SampleDisposition-SampleResult-ResultEvaluation-item-post-request
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 : inspectionEvents-item-response
Type: object
Show Source
Nested Schema : Result Attachments
Type: array
Title: Result Attachments
The Result Attachments resource manages the attachments for the sample results.
Show Source
Nested Schema : Event Dispositions
Type: array
Title: Event Dispositions
The Event Dispositions resource manages event dispositions.
Show Source
Nested Schema : Inspection Event Actions
Type: array
Title: Inspection Event Actions
The Inspection Actions resource is used to view inspection actions for the inspection event.
Show Source
Nested Schema : Samples
Type: array
Title: Samples
The Samples resource manages sample items.
Show Source
Nested Schema : inspectionEvents-Attachments-item-response
Type: object
Show Source
Nested Schema : inspectionEvents-EventDisposition-item-response
Type: object
Show Source
Nested Schema : inspectionEvents-inspectionEventActions-item-response
Type: object
Show Source
Nested Schema : inspectionEvents-Sample-item-response
Type: object
Show Source
Nested Schema : Sample Dispositions
Type: array
Title: Sample Dispositions
The Sample Dispositions resource manages sample item dispositions.
Show Source
Nested Schema : inspectionEvents-Sample-SampleDisposition-item-response
Type: object
Show Source
Nested Schema : Sample Results
Type: array
Title: Sample Results
The Sample Results resource manages the sample results for an item.
Show Source
Nested Schema : inspectionEvents-Sample-SampleDisposition-SampleResult-item-response
Type: object
Show Source
Nested Schema : Result Attachments
Type: array
Title: Result Attachments
The Result Attachments resource manages the attachments for the sample results.
Show Source
Nested Schema : Result Evaluations
Type: array
Title: Result Evaluations
The Result Evaluations resource manages the evaluation results.
Show Source
Nested Schema : inspectionEvents-Sample-SampleDisposition-SampleResult-Attachments-item-response
Type: object
Show Source
Nested Schema : inspectionEvents-Sample-SampleDisposition-SampleResult-ResultEvaluation-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to create an inventory inspection with the action rule execution enabled.

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/inspectionEvents"

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.

{
"EventType":"INV",
"Inline":"N",
"InspectedBy":"QUALITY_ENGINEER",
"InspectionDate":"2023-09-12",
"OrganizationCode":"M1",
"QuantityRequested":1,
"ItemNumber" : "AS54888",
"SubinventoryCode" : "A8285923",
"INVInspectionPlanName":"ass54888-allactions",
"ExecuteActionRulesFlag": true
}

Example Response Body

The following example includes the contents of the response body in JSON format:

{
    "CategoryId": null,
    "CategorySetId": null,
    "CustomerId": null,
    "DispatchStatus": null,
    "DispositionDate": null,
    "DocumentLineNumber": null,
    "DocumentNumber": null,
    "DocumentScheduleNumber": null,
    "DocumentType": null,
    "Draft": "N",
    "EventType": "INV",
    "Inline": "N",
    "InspectedBy": "QUALITY_ENGINEER",
    "InspectionDate": "2023-09-12T00:00:00+00:00",
    "InspectionLevelId": 100,
    "InspectionPlanId": 300100584133492,
    "InspectionStatus": "PENDING",
    "InterfaceTransactionId": null,
    "InventoryItemId": 149,
    "IpCriteriaId": null,
    "IpEventId": 300100612669726,
    "LocatorId": null,
    "LotNumber": null,
    "ObjectVersionNumber": 4,
    "OperationSequenceNumber": null,
    "OrganizationId": 207,
    "OriginalDisposition": "PENDING",
    "QuantityAccepted": 0,
    "QuantityInspected": 0,
    "QuantityRejected": 0,
    "QuantityRequested": 1,
    "ReceiptNumber": null,
    "ResourceId": null,
    "RevisionId": null,
    "SamplingQuantity": 1,
    "ShipmentHeaderId": null,
    "ShipmentLineId": null,
    "SourceLineQuantity": null,
    "SourceOrgId": null,
    "SubinventoryCode": "A8285923",
    "SupplierId": null,
    "SupplierLotNumber": null,
    "SupplierSiteId": null,
    "TransactionType": null,
    "UOMCode": "Ea",
    "WoOperationId": null,
    "WorkAreaId": null,
    "WorkCenterId": null,
    "WorkOrderId": null,
    "OrganizationCode": "M1",
    "WorkOrderNumber": null,
    "ItemNumber": "AS54888",
    "WIPInspectionPlanName": null,
    "ItemRevision": null,
    "WoOperationCode": null,
    "SubinventoryId": 300100011466869,
    "Locator": null,
    "INVInspectionPlanName": "ass54888-allactions",
    "ResourceInspectionPlanName": null,
    "WorkCenterCode": null,
    "ResourceCode": null,
    "InspectionLevelName": "100%",
    "isSkiplotEnabled": "N",
    "SamplingRate": 100,
    "NumofLotsInspect": 0,
    "NumofLots": 0,
    "InspectionPlanType": "INVENTORY",
    "InspectionPlanVersion": "1",
    "InspectionPlanVersionDescription": null,
    "isSamplingEnabled": "N",
    "FromOrganizationId": null,
    "ItemDescription": null,
    "VendorId": null,
    "VendorSiteId": null,
    "SourceDocumentCode": null,
    "EventTypeLOV": null,
    "InspectAllSamplesFlag": null,
    "SerialResultsEntryFlag": null,
    "SourceOrganizationCode": null,
    "Supplier": null,
    "SupplierSite": null,
    "InspectionName": "AS54888A8285923",
    "RCVInspectionPlanName": null,
    "WoOperationName": null,
    "AcceptanceNumber": null,
    "NonConformanceCount": null,
    "RejectionNumber": null,
    "SampleSizeCode": null,
    "TotalSampleQuantity": null,
    "PreAssignedLotNumber": null,
    "AssetId": null,
    "AssetNumber": null,
    "AssetInspectionPlanName": null,
    "AssetWorkOrderId": null,
    "AssetWorkOrderNumber": null,
    "AssetSerialNumber": null,
    "ExecuteActionRulesFlag": true,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726",
            "name": "inspectionEvents",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000478"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726",
            "name": "inspectionEvents",
            "kind": "item"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/WorkOrderNumberLOV",
            "name": "WorkOrderNumberLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/OrganizationCodeLOV",
            "name": "OrganizationCodeLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/ResourceInspPlanNameLOV",
            "name": "ResourceInspPlanNameLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/INVInspPlanNameLOV",
            "name": "INVInspPlanNameLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/WorkOrderProductLotLOV",
            "name": "WorkOrderProductLotLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/ItemRevisionLOV",
            "name": "ItemRevisionLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/InspectionTypeLOV",
            "name": "InspectionTypeLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/LotNumberLOV",
            "name": "LotNumberLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/LocatorLOV",
            "name": "LocatorLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/WorkCenterCodeLOV",
            "name": "WorkCenterCodeLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/WIPInspPlanNameLOV",
            "name": "WIPInspPlanNameLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/ResourceCodeLOV",
            "name": "ResourceCodeLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/WoOperationCodeLOV",
            "name": "WoOperationCodeLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/AssetLOV",
            "name": "AssetLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/InventoryItemLOV",
            "name": "InventoryItemLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/InspectedByLOV",
            "name": "InspectedByLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/AssetInspPlanNameLOV",
            "name": "AssetInspPlanNameLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/WorkOrderAssetInfoVVA",
            "name": "WorkOrderAssetInfoVVA",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/lov/SubInventoryLOV",
            "name": "SubInventoryLOV",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Attachments",
            "name": "Attachments",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/EventDisposition",
            "name": "EventDisposition",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample",
            "name": "Sample",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/inspectionEventActions",
            "name": "inspectionEventActions",
            "kind": "collection"
        }
    ]
}
Back to Top