Update a relationship
patch
/fscmRestApi/resources/11.13.18.05/GTINRelationships/{ItemRelationshipId}
Request
Path Parameters
-
ItemRelationshipId(required): integer
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=
Header Parameters
-
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.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
DFF: array
DFF
-
EPCGTINSerial: number
Title:
EPC or GTIN SerialValue that identifies the electronic product code or the GTIN serial number. -
InventoryItemId: integer
Value that uniquely identifies an item.
-
Item: string
Maximum Length:
300Name or number of the part, item, product, or service. -
OrganizationCode: string
Maximum Length:
18Abbreviation that identifies the organization. -
OrganizationId: integer
Value that uniquely identifies the organization.
-
PartyName: string
Title:
NameMaximum Length:360Name of the party. -
RegistryId: string
Title:
Registry IDMaximum Length:30Value that uniquely identifies the party. -
RelationshipDescription: string
Title:
GTIN DescriptionMaximum Length:240Description of the GTIN relationship. -
RevisionCode: string
Title:
Revision CodeMaximum Length:18Abbreviation that identifies the revision of the item. -
translatableAttributes: array
Translatable Attributes
Title:
Translatable AttributesThe Translatable Attributes resource manages the translatable attributes for item relationships. -
UOM: string
Title:
UOM NameMaximum Length:25Unit of measure for the GTIN relationship.
Nested Schema : Translatable Attributes
Type:
arrayTitle:
Translatable AttributesThe Translatable Attributes resource manages the translatable attributes for item relationships.
Show Source
Nested Schema : schema
Type:
Show Source
object-
__FLEX_Context: string
Title:
ContextMaximum Length:150 -
__FLEX_Context_DisplayValue: string
Title:
Context
Nested Schema : GTINRelationships-translatableAttributes-item-patch-request
Type:
Show Source
object-
ItemRelationshipId: integer
Value that uniquely identifies the item relationship.
-
Language: string
Maximum Length:
4Value that identifies the language used for the item relationship translatable attribute. -
RelationshipDescription: string
Maximum Length:
240Description of the item relationship. -
SourceLanguage: string
Maximum Length:
4Source language of the translation.
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
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.
Root Schema : GTINRelationships-item-response
Type:
Show Source
object-
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the GTIN relationship. -
CreationDateTime: string
(date-time)
Read Only:
trueDate and time when the user created the GTIN relationship. -
DFF: array
DFF
-
EPCGTINSerial: number
Title:
EPC or GTIN SerialValue that identifies the electronic product code or the GTIN serial number. -
GTIN: string
Title:
GTINMaximum Length:255Number that identifies the global trade item. -
InventoryItemId: integer
Value that uniquely identifies an item.
-
Item: string
Maximum Length:
300Name or number of the part, item, product, or service. -
ItemRelationshipId: integer
(int64)
Value that uniquely identifies the GTIN relationship.
-
LastUpdateDateTime: string
(date-time)
Read Only:
trueDate when the user most recently updated the GTIN relationship. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the GTIN relationship. -
LastUpdateLogin: string
Read Only:
trueMaximum Length:32Login that the user used when updating the GTIN relationship. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
OrganizationCode: string
Maximum Length:
18Abbreviation that identifies the organization. -
OrganizationId: integer
Value that uniquely identifies the organization.
-
PartyName: string
Title:
NameMaximum Length:360Name of the party. -
PartyType: string
Maximum Length:
255Type of the party. -
RegistryId: string
Title:
Registry IDMaximum Length:30Value that uniquely identifies the party. -
RelationshipDescription: string
Title:
GTIN DescriptionMaximum Length:240Description of the GTIN relationship. -
RevisionCode: string
Title:
Revision CodeMaximum Length:18Abbreviation that identifies the revision of the item. -
translatableAttributes: array
Translatable Attributes
Title:
Translatable AttributesThe Translatable Attributes resource manages the translatable attributes for item relationships. -
UOM: string
Title:
UOM NameMaximum Length:25Unit of measure for the GTIN relationship.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : Translatable Attributes
Type:
arrayTitle:
Translatable AttributesThe Translatable Attributes resource manages the translatable attributes for item relationships.
Show Source
Nested Schema : GTINRelationships-DFF-item-response
Type:
Show Source
object-
__FLEX_Context: string
Title:
ContextMaximum Length:150 -
__FLEX_Context_DisplayValue: string
Title:
Context -
ItemRelationshipId: integer
(int64)
-
ItemRelationshipType: string
Title:
TypeMaximum Length:30 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
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.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : GTINRelationships-translatableAttributes-item-response
Type:
Show Source
object-
CreatedBy: string
Read Only:
trueMaximum Length:64User who first provided value for the item relationship translatable attribute. -
CreationDateTime: string
(date-time)
Read Only:
trueDate and time when the user first provided value for the item relationship translatable attribute. -
ItemRelationshipId: integer
Value that uniquely identifies the item relationship.
-
Language: string
Maximum Length:
4Value that identifies the language used for the item relationship translatable attribute. -
LastUpdateDateTime: string
(date-time)
Read Only:
trueDate and time when the user most recently updated the item relationship translatable attribute. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the item relationship translatable attribute. -
LastUpdateLogin: string
Read Only:
trueMaximum Length:32Login that the user used when updating the item relationship translatable attribute. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
RelationshipDescription: string
Maximum Length:
240Description of the item relationship. -
SourceLanguage: string
Maximum Length:
4Source language of the translation.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- DFF
-
Parameters:
- ItemRelationshipId:
$request.path.ItemRelationshipId
- ItemRelationshipId:
- PartyTypesLOV
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DEGP_GTIN_PARTY_TYPES
The following properties are defined on the LOV link relation:- Source Attribute: PartyType; Target Attribute: Meaning
- Display Attribute: Meaning
- finder:
- translatableAttributes
-
Parameters:
- ItemRelationshipId:
$request.path.ItemRelationshipId
The Translatable Attributes resource manages the translatable attributes for item relationships. - ItemRelationshipId:
Examples
This example describes how to update a relationship.
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/GTINRelationships/ItemRelationshipId"
For example:
curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/GTINRelationships/300100197102286"
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.
{
"UOM" : "CARTON",
"RelationshipDescription" : "GTIN for Commerce"
}
Example Response Body
The following example includes the contents of the response body in JSON format:
{
"ItemRelationshipId": 300100197102286,
"OrganizationId": 204,
"OrganizationCode": "V1",
"InventoryItemId": 300100185399396,
"Item": "M2584",
"RevisionCode": "A",
"PartyType": "Manufacturer",
"PartyName": "TCP Manufacturer",
"RegistryId": "100000017351024",
"GTIN": "67867767847782",
"UOM": "CARTON",
"RelationshipDescription": "GTIN for Commerce",
"EpcGtinSerial": null,
"CreationDateTime": "2020-07-10T10:26:23.056+00:00",
"LastUpdateDateTime": "2020-07-10T10:37:39+00:00",
"CreatedBy": "user",
"LastUpdateLogin": "A9EBC37ADBFE1382E0537AA8F00A4821",
"LastUpdatedBy": "user",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/GTINRelationships/300100197102286",
"name": "GTINRelationships",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000378"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/GTINRelationships/300100197102286",
"name": "GTINRelationships",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/GTINRelationships/300100197102286/child/DFF",
"name": "DFF",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/GTINRelationships/300100197102286/child/translatableAttributes",
"name": "translatableAttributes",
"kind": "collection"
}
]
}