Create one approved manufacturer
post
/fscmRestApi/resources/11.13.18.05/productChangeOrders/{ChangeId}/child/AffectedObject/{AffectedObjectUniqID}/child/AffectedItemAML
Request
Path Parameters
-
AffectedObjectUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Affected Objects resource and used to uniquely identify an instance of Affected Objects. The client should not generate the hash key value. Instead, the client should query on the Affected Objects collection resource in order to navigate to a specific instance of Affected Objects to get the hash key.
-
ChangeId(required): integer
Value that uniquely identifies the change.
Header Parameters
-
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.
-
Upsert-Mode: string
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
- application/json
Root Schema : schema
Type:
Show Source
object-
InventoryItemId: integer
Value that uniquely identifies an item.
-
ItemNumber: string
Maximum Length:
255Number that identifies the item. -
ItemRelationshipId: integer
(int64)
Value that uniquely identifies the relationship between an item and a manufacturer part.
-
MasterOrganizationId: integer
Value that uniquely identifies the master organization of the relationship.
-
OrganizationCode: string
Maximum Length:
255Abbreviation that identifies the organization of the item. -
OrganizationId: integer
Value that uniquely identifies the organization of the relationship.
-
StatusCode: string
Title:
StatusMaximum Length:30Status of the relationship between the item and the manufacturer part. Valid values include approved, pending and obsolete. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Product Development Lookups task. -
TradingPartnerItemId: integer
Value that uniquely identifies the manufacturer part number.
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 : productChangeOrders-AffectedObject-AffectedItemAML-item-response
Type:
Show Source
object-
ACDTypeCode: string
Read Only:
trueValue that indicates if the manufacturer is being added, modified, or deleted through a change line. -
ChangeLineId: integer
(int64)
Read Only:
trueDefault Value:-1Value that uniquely identifies the change line corresponding to the item relationship. -
CreatedBy: string
Read Only:
trueMaximum Length:64User who created the relationship between the item and the manufacturer part. -
CreationDate: string
(date-time)
Read Only:
trueDate when the relationship was created. -
Description: string
Title:
Relationship DescriptionRead Only:trueMaximum Length:240Description of the relationship between item and the manufacturer part. -
EndDateActive: string
(date-time)
Title:
End DateRead Only:trueDate when the association between the item and the manufacturer part ends. -
ImplementationDate: string
(date-time)
Read Only:
trueDate of the relationship between an item and a manufacturer part was implemented. -
InventoryItemId: integer
Value that uniquely identifies an item.
-
ItemNumber: string
Maximum Length:
255Number that identifies the item. -
ItemRelationshipId: integer
(int64)
Value that uniquely identifies the relationship between an item and a manufacturer part.
-
ItemRelationshipType: string
Title:
TypeRead Only:trueMaximum Length:30Default Value:MFG_PART_NUMType of the relationship. Valid values are Manufacturer, Supplier, or Customer. -
LastUpdateDate: string
(date-time)
Read Only:
trueDate when the relationship between item and a manufacturer part was most recently updated. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64User who most recently updated the item relationship. -
LastUpdateLogin: string
Read Only:
trueMaximum Length:32Login of the user who most recently updated the relationship. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MasterOrganizationId: integer
Value that uniquely identifies the master organization of the relationship.
-
ObjectVersionNumber: integer
(int32)
Read Only:
trueValue that identifies the version of the approved manufacturer. -
OrganizationCode: string
Maximum Length:
255Abbreviation that identifies the organization of the item. -
OrganizationId: integer
Value that uniquely identifies the organization of the relationship.
-
RedLineDescription: string
Read Only:
trueNew value of the description if it was updated through a change order. -
RedLineStatusCode: string
Read Only:
trueNew status if it was updated through a change order. -
StartDateActive: string
(date-time)
Title:
Start DateRead Only:trueDate when the association between the item and the manufacturer begins. -
StatusCode: string
Title:
StatusMaximum Length:30Status of the relationship between the item and the manufacturer part. Valid values include approved, pending and obsolete. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Product Development Lookups task. -
TradingPartnerItem: string
Read Only:
trueMaximum Length:255Name or number of the manufacturer who manufactures the part associated with the item. -
TradingPartnerItemId: integer
Value that uniquely identifies the manufacturer part number.
-
TradingPartnerName: string
Read Only:
trueMaximum Length:255Name of the manufacturer who manufactures the part associated with the item.
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.
Examples
This example describes how to create oone approved manufacturer.
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/productChangeOrders/ChangeId/child/AffectedObject/ChangeLineId/child/AffectedItemAML"
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 creates.
{
"TradingPartnerItemId":300100159305994,
"StatusCode": "ORA_OBSOLETE"
}
Example Response Body
The following example includes the contents of the response body in JSON format:
{
"ChangeLineId": 300100159306174,
"CreatedBy": "PIMQA",
"CreationDate": "2018-06-27T06:39:22.001+00:00",
"Description": null,
"EndDateActive": null,
"ImplementationDate": null,
"InventoryItemId": 300100159305997,
"ItemRelationshipId": 300100159309562,
"ItemRelationshipType": "MFG_PART_NUM",
"LastUpdateDate": "2018-06-27T06:39:23.095+00:00",
"LastUpdateLogin": "6F999107E8637C0AE0537328F70AEE75",
"LastUpdatedBy": "PIMQA",
"MasterOrganizationId": 204,
"ObjectVersionNumber": 1,
"OrganizationId": null,
"StartDateActive": "2018-06-27T06:32:32+00:00",
"StatusCode": "ORA_OBSOLETE",
"RedLineDescription": null,
"RedLineStatusCode": null,
"ACDTypeCode": "ADD",
"TradingPartnerItemId": 300100159305994,
"TradingPartnerName": null,
"TradingPartnerItem": null,
...
}