Update an object
/fscmRestApi/resources/11.13.18.05/qualityIssues/{IssueId}/child/AffectedObjects/{AffectedObjectId}
Request
-
AffectedObjectId(required): integer(int64)
The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
-
IssueId(required): integer(int64)
The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
-
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-
ContextCode: string
-
ImpactType: string
Title:
Impact TypeMaximum Length:30 -
Status: string
Title:
Relation StatusMaximum Length:30 -
SubContextCode: string
-
SubContextTwoCode: string
-
SupportedEntityCode: string
-
SupportedEntityName: string
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-
AffectedObjectId: integer
(int64)
Title:
Affected Object -
ContextCode: string
-
ContextId: integer
(int64)
-
CreatedBy: string
Read Only:
trueMaximum Length:64 -
CreationDate: string
(date-time)
Read Only:
true -
Description: string
Title:
DescriptionMaximum Length:400 -
ImpactType: string
Title:
Impact TypeMaximum Length:30 -
ImpactTypeName: string
Read Only:
true -
LastUpdateDate: string
(date-time)
Read Only:
true -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ObjectId: integer
(int64)
Title:
Object -
Status: string
Title:
Relation StatusMaximum Length:30 -
StatusName: string
Read Only:
true -
SubContextCode: string
-
SubContextFiveId: string
Maximum Length:
80 -
SubContextFourId: integer
(int64)
-
SubContextId: integer
(int64)
-
SubContextSixId: string
Maximum Length:
80 -
SubContextThreeId: integer
(int64)
-
SubContextTwoCode: string
-
SubContextTwoId: integer
(int64)
-
SupportedEntityCode: string
-
SupportedEntityId: integer
(int64)
-
SupportedEntityName: string
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.
Examples
This example describes how to update one affected object in one quality issue.
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/qualityIssues/IssueId/child/AffectedObjects/AffectedObjectId"
For example, the following command updates affected object 300100111228323 in quality issue 300100111060019:
curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/qualityIssues/300100111060019/child/AffectedObjects/300100111228323
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.
{"ImpactType":"ORA_PRIMARY"}Example Response Body
The following example includes the contents of the response body in JSON format:
{
"AffectedObjectId" : 300100111291528,
"Description" : null,
"ImpactType" : "ORA_PRIMARY",
"ObjectId" : 300100111291525,
"Status" : "ORA_OPEN",
"SupportedEntityId" : 1002,
"SupportedEntityCode" : "ORA_WORK_OPERATION",
"ContextId" : 300100111285614,
"ContextCode" : "M1-1103 - 10",
...
}