Update an object
/fscmRestApi/resources/11.13.18.05/qualityIssues/{IssueId}/child/AffectedObjects/{AffectedObjectId}
Request
-
AffectedObjectId(required): integer(int64)
Value that uniquely identifies the item that the quality issue affects.
-
IssueId(required): integer(int64)
Value that uniquely identifies the quality issue.
-
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
-
ContextCode: string
Abbreviation that identifies the context of the item that the quality issue affects.
-
ImpactType: string
Title:
Impact Type
Maximum Length:30
Type of impact that the item that the quality issue affects causes. -
Status: string
Title:
Relation Status
Maximum Length:30
Status of the item that the quality issue affects. -
SubContextCode: string
Abbreviation that identifies the subcontext of the affected object.
-
SubContextTwoCode: string
Abbreviation that identifies the second subcontext of the affected object.
-
SupportedEntityCode: string
Type of object that the quality issue affects.
-
SupportedEntityName: string
Name of the supported entity.
Response
- application/json
Default Response
-
Metadata-Context(required):
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(required):
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
Value that uniquely identifies the item that the quality issue affects. -
ContextCode: string
Abbreviation that identifies the context of the item that the quality issue affects.
-
ContextId: integer
(int64)
Value that uniquely identifies the context of the item that the quality issue affects.
-
CreatedBy: string
Read Only:
true
Maximum Length:64
User who added the item that the quality issue affects. -
CreationDate: string
(date-time)
Read Only:
true
Date when the user added the item that the quality issue affects. -
Description: string
Title:
Description
Maximum Length:400
Description of the item that the quality issue affects. -
ImpactType: string
Title:
Impact Type
Maximum Length:30
Type of impact that the item that the quality issue affects causes. -
ImpactTypeName: string
Read Only:
true
Name of the impact type. -
LastUpdateDate: string
(date-time)
Read Only:
true
Date when the user most recently updated the item that the quality issue affects. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
User who most recently updated the item that the quality issue affects. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
ObjectId: integer
(int64)
Title:
Object
Value that uniquely identifies the item that the quality issue affects. -
Status: string
Title:
Relation Status
Maximum Length:30
Status of the item that the quality issue affects. -
StatusName: string
Read Only:
true
Name of the status. -
SubContextCode: string
Abbreviation that identifies the subcontext of the affected object.
-
SubContextFiveId: string
Maximum Length:
80
Value that uniquely identifies the fifth subcontext of the affected object. -
SubContextFourId: integer
(int64)
Value that uniquely identifies the fourth subcontext of the affected object.
-
SubContextId: integer
(int64)
Value that uniquely identifies the subcontext of the affected object.
-
SubContextSixId: string
Maximum Length:
80
Value that uniquely identifies the sixth subcontext of the affected object. -
SubContextThreeId: integer
(int64)
Value that uniquely identifies the third subcontext of the affected object.
-
SubContextTwoCode: string
Abbreviation that identifies the second subcontext of the affected object.
-
SubContextTwoId: integer
(int64)
Value that uniquely identifies the second subcontext of the affected object.
-
SupportedEntityCode: string
Type of object that the quality issue affects.
-
SupportedEntityId: integer
(int64)
Value that uniquely identifies the supported entity of the item that the quality issue affects.
-
SupportedEntityName: string
Name of the supported entity.
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.
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", ... }