Update one result

patch

/fscmRestApi/resources/11.13.18.05/inspectionEvents/{IpEventId}/child/Sample/{SampleId}/child/SampleDisposition/{SampleEventDispositionId}/child/SampleResult/{SampleResultId}

Request

Path Parameters
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.
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 : 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-patch-request
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 : 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

These examples describe how to update results.

Example cURL Command

Use the following cURL command to submit a request on the REST resource.

curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/inspectionEvents/IpEventId/child/Sample/SampleId/child/SampleDisposition/SampleEventDispositionId/child/SampleResult/SampleResultId"

Example 1

The following example describes how to update the result value of a sample result with characteristic data type as CHARACTER.

Example 1 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.

{
    "ResultValueChar" : "OK"
}

Example 1 Response Body

The following example includes the contents of the response body in JSON format:
{
    "CharacteristicId": 300100123941131,
    "Comments": null,
    "Disposition": null,
    "Evaluation": null,
    "InSpecification": null,
    "InspectionDate": "2023-09-12T16:24:56.409+00:00",
    "IpEventId": 300100612669726,
    "ObjectVersionNumber": 2,
    "Quantity": null,
    "ResultValueChar": "OK",
    "ResultValueDate": null,
    "ResultValueNumber": null,
    "SampleId": 300100612669728,
    "SampleResultId": 300100612773535,
    "UOMCode": null,
    "UserSequence": 20,
    "CharacteristicName": "LOG-CH",
    "DataType": "CHARACTER",
    "ResultValueCharNonValidated": "OK",
    "OptionalFlag": null,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773535",
            "name": "SampleResult",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773535",
            "name": "SampleResult",
            "kind": "item"
        },
        {
            "rel": "parent",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729",
            "name": "SampleDisposition",
            "kind": "item"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773535/lov/CharacteristicValueLOV",
            "name": "CharacteristicValueLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773535/lov/CharacteristicNameLOV",
            "name": "CharacteristicNameLOV",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773535/child/Attachments",
            "name": "Attachments",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773535/child/ResultEvaluation",
            "name": "ResultEvaluation",
            "kind": "collection"
        }
    ]
}

Example 2

The following example describes how to update the result value of a sample result with characteristic data type as NUMBER.

Example 2 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.

{
    "ResultValueNumber" : 2
}

Example 2 Response Body

The following example includes the contents of the response body in JSON format:
{
    "CharacteristicId": 300100122457152,
    "Comments": null,
    "Disposition": "REJECT",
    "Evaluation": "Y",
    "InSpecification": "N",
    "InspectionDate": "2023-09-12T10:24:39.703+00:00",
    "IpEventId": 300100612669726,
    "ObjectVersionNumber": 2,
    "Quantity": 1,
    "ResultValueChar": null,
    "ResultValueDate": null,
    "ResultValueNumber": 2,
    "SampleId": 300100612669728,
    "SampleResultId": 300100612669730,
    "UOMCode": null,
    "UserSequence": 10,
    "CharacteristicName": "NonItemInspChar1",
    "DataType": "NUMBER",
    "ResultValueCharNonValidated": null,
    "OptionalFlag": null,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612669730",
            "name": "SampleResult",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612669730",
            "name": "SampleResult",
            "kind": "item"
        },
        {
            "rel": "parent",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729",
            "name": "SampleDisposition",
            "kind": "item"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612669730/lov/CharacteristicValueLOV",
            "name": "CharacteristicValueLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612669730/lov/CharacteristicNameLOV",
            "name": "CharacteristicNameLOV",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612669730/child/Attachments",
            "name": "Attachments",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612669730/child/ResultEvaluation",
            "name": "ResultEvaluation",
            "kind": "collection"
        }
    ]
}

Example 3

The following example describes how to update the result value of a sample result with characteristic data type as DATE.

Example 3 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.

{
    "ResultValueDate": "2023-09-12T16:24:56.409+00:00"
}

Example 3 Response Body

The following example includes the contents of the response body in JSON format:
{
{
    "CharacteristicId": 300100151162605,
    "Comments": null,
    "Disposition": null,
    "Evaluation": null,
    "InSpecification": null,
    "InspectionDate": "2023-09-12T16:24:56.409+00:00",
    "IpEventId": 300100612669726,
    "ObjectVersionNumber": 2,
    "Quantity": null,
    "ResultValueChar": null,
    "ResultValueDate": "2023-09-12T16:24:56.409+00:00",
    "ResultValueNumber": null,
    "SampleId": 300100612669728,
    "SampleResultId": 300100612773546,
    "UOMCode": null,
    "UserSequence": 30,
    "CharacteristicName": "QIM-NonItemDate",
    "DataType": "DATE",
    "ResultValueCharNonValidated": null,
    "OptionalFlag": null,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773546",
            "name": "SampleResult",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773546",
            "name": "SampleResult",
            "kind": "item"
        },
        {
            "rel": "parent",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729",
            "name": "SampleDisposition",
            "kind": "item"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773546/lov/CharacteristicValueLOV",
            "name": "CharacteristicValueLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773546/lov/CharacteristicNameLOV",
            "name": "CharacteristicNameLOV",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773546/child/Attachments",
            "name": "Attachments",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773546/child/ResultEvaluation",
            "name": "ResultEvaluation",
            "kind": "collection"
        }
    ]
}    "CharacteristicId": 300100151162605,
    "Comments": null,
    "Disposition": null,
    "Evaluation": null,
    "InSpecification": null,
    "InspectionDate": "2023-09-12T16:24:56.409+00:00",
    "IpEventId": 300100612669726,
    "ObjectVersionNumber": 2,
    "Quantity": null,
    "ResultValueChar": null,
    "ResultValueDate": "2023-09-12T16:24:56.409+00:00",
    "ResultValueNumber": null,
    "SampleId": 300100612669728,
    "SampleResultId": 300100612773546,
    "UOMCode": null,
    "UserSequence": 30,
    "CharacteristicName": "QIM-NonItemDate",
    "DataType": "DATE",
    "ResultValueCharNonValidated": null,
    "OptionalFlag": null,
    "links": [
        {
            "rel": "self",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773546",
            "name": "SampleResult",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773546",
            "name": "SampleResult",
            "kind": "item"
        },
        {
            "rel": "parent",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729",
            "name": "SampleDisposition",
            "kind": "item"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773546/lov/CharacteristicValueLOV",
            "name": "CharacteristicValueLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773546/lov/CharacteristicNameLOV",
            "name": "CharacteristicNameLOV",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773546/child/Attachments",
            "name": "Attachments",
            "kind": "collection"
        },
        {
            "rel": "child",
            "href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100612669726/child/Sample/300100612669728/child/SampleDisposition/300100612669729/child/SampleResult/300100612773546/child/ResultEvaluation",
            "name": "ResultEvaluation",
            "kind": "collection"
        }
    ]
}
Back to Top