Update one item
patch
/fscmRestApi/resources/11.13.18.05/vmiItems/{VmiItemId}
Request
Path Parameters
-
VmiItemId(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=
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-
MaximumQuantity: number
Title:
Maximum QuantityValue that indicates the maximum quantity of the item that can't be exceeded in inventory. -
minimumMaximumHistory: array
Minimum-Maximum History
Title:
Minimum-Maximum HistoryThe Minimum-Maximum History resource gets historical minimum and maximum quantities for an item. -
MinimumQuantity: number
Title:
Minimum QuantityValue that indicates the minimum quantity of the item that must be maintained in inventory.
Nested Schema : Minimum-Maximum History
Type:
arrayTitle:
Minimum-Maximum HistoryThe Minimum-Maximum History resource gets historical minimum and maximum quantities for an item.
Show Source
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 : vmiItems-item-response
Type:
Show Source
object-
Buyer: string
Title:
BuyerRead Only:trueMaximum Length:240Name of the person responsible for placing item resupply orders with suppliers and negotiating supplier contracts. -
BuyerId: integer
(int64)
Read Only:
trueValue that uniquely identifies the buyer. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64User who created the vendor-managed inventory item. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueDate and time when the user created the vendor-managed inventory item. -
DelivertoLocationId: integer
Read Only:
trueValue that uniquely identifies the location where the item is delivered. This attribute isn't available to suppliers. -
DeliverToLocationName: string
Read Only:
trueMaximum Length:255Name of the deliver-to location. This attribute isn't available to suppliers. -
InTransitQuantity: integer
(int64)
Title:
In-Transit ShipmentsRead Only:trueAggregated quantity of the shipments for the inventory item. -
InventoryItemId: integer
(int64)
Title:
Item NumberRead Only:trueValue that uniquely identifies the part, item, product, or service. -
InventoryPlanningOwner: string
Title:
Inventory Planning OwnerRead Only:trueMaximum Length:255Value that indicates the owner who creates replenishment requests for vendor-managed inventory. Value can be supplier or enterprise. -
InventoryPlanningOwnerCode: string
Read Only:
trueMaximum Length:255Abbreviation that identifies the inventory planning owner for the item. -
ItemCategory: string
Title:
Item CategoryRead Only:trueMaximum Length:255Category that the application assigns to the item from the default planning catalog. -
ItemDescription: string
Title:
Item DescriptionRead Only:trueMaximum Length:240Description of the item. -
ItemNumber: string
Title:
Item NumberRead Only:trueMaximum Length:300Number that identifies the part, item, product, or service. -
ItemPlanner: string
Title:
Item PlannerRead Only:trueMaximum Length:10Name of the person responsible for demand and supply planning. This attribute isn't available to suppliers. -
LastRefreshDate: string
(date-time)
Read Only:
trueDate and time when the replenishment data was updated. -
LastUpdateDate: string
(date-time)
Title:
Last Updated DateRead Only:trueUser who most recently updated the vendor-managed inventory item. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64Date and time when the user most recently updated the vendor-managed inventory item. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MaximumQuantity: number
Title:
Maximum QuantityValue that indicates the maximum quantity of the item that can't be exceeded in inventory. -
minimumMaximumHistory: array
Minimum-Maximum History
Title:
Minimum-Maximum HistoryThe Minimum-Maximum History resource gets historical minimum and maximum quantities for an item. -
MinimumQuantity: number
Title:
Minimum QuantityValue that indicates the minimum quantity of the item that must be maintained in inventory. -
MinMaxQuantitySource: string
Read Only:
trueMaximum Length:255Value that indicates the source of the minimum and maximum quantities used to manage vendor-managed inventory replenishments. Valid values include Enterprise and Supplier. -
MinMaxQuantitySourceCode: string
Read Only:
trueMaximum Length:255Value that uniquely identifies the source of the minimum and maximum quantities used to manage vendor-managed inventory replenishments. Valid values include ORA_VCS_MIN_MAX_ORIGIN_ENT and ORA_VCS_MIN_MAX_ORIGIN_SUP. -
OnHandQuantity: number
Title:
On HandRead Only:trueQuantity of the on-hand inventory for the inventory item. -
OnOrderQuantity: number
Title:
On-Order QuantityRead Only:trueAggregated quantity of the on-order inventory for the inventory item. On order is the summation of quantities for replenishment requests, purchase order, shipment, and receipt. -
OrganizationCode: string
Title:
OrganizationRead Only:trueMaximum Length:18Abbreviation that identifies the organization that receives the item. -
OrganizationId: integer
(int64)
Title:
Organization IDRead Only:trueValue that uniquely identifies the organization in the relationship. This organization receives the shipment. It's a primary key that the application generates when it creates an organization. -
OrganizationName: string
Title:
Organization NameRead Only:trueMaximum Length:240Name of the organization that receives the item. -
PendingAcknowledgmentQuantity: number
Read Only:
trueAggregated quantity of the purchase orders pending acknowledgment for the inventory item. -
ProcurementBU: string
Title:
Procurement BURead Only:trueMaximum Length:240Name of the business unit. The application assigns the supplier to this business unit. -
ProcurementBUId: integer
(int64)
Read Only:
trueValue that uniquely identifies the business unit that manages and owns the purchasing document. -
PurchaseOrderQuantity: number
Title:
QuantityRead Only:trueAggregated quantity of the purchase orders for the inventory item. -
ReceivedQuantity: integer
(int64)
Title:
Shipments in ReceivingRead Only:trueAggregated quantity of the shipments received for the inventory item. -
ReplenishmentQuantity: number
Title:
Replenishment QuantityRead Only:trueAggregated quantity of the replenishment requests for the inventory item. -
RequiringReplenishment: string
Read Only:
trueValue that identifies if replenishment is needed. Values include Yes, No, and Missing min-max quantities. -
RequiringReplenishmentCode: string
Read Only:
trueValue that uniquely identifies if replenishment is needed. A list of accepted values is defined in the lookup type ORA_VCS_VMI_REQ_REPL. -
Scope: string
Read Only:
trueMaximum Length:255Value that identifies the level at which the replenishment process is managed. Values include Organization and Subinventory. -
ScopeCode: string
Read Only:
trueValue that uniquely identifies the level at which the replenishment process is managed. A list of accepted values is defined in the lookup type ORA_VCS_VMI_RELATIONSHIP_SCOPE. -
ShipToLocationId: integer
(int64)
Read Only:
trueValue that uniquely identifies the location where the item is shipped. -
ShipToLocationName: string
Read Only:
trueMaximum Length:255Name of the ship-to location. -
Status: string
Title:
StatusRead Only:trueStatus of the item. This value is calculated as the sum of on-hand and on-order quantities compared to the minimum and maximum quantities. Value can be Out of Stock, Stock Below Minimum, Stock Above Maximum, or In Stock. -
StatusCode: string
Read Only:
trueValue that identifies the state of the replenishment item. A list of accepted values is defined in the lookup type ORA_VCS_VMI_ITEM_STATUS. -
SubinventoryDescription: string
Title:
Subinventory DescriptionRead Only:trueMaximum Length:50Description of the subinventory. -
SubinventoryId: integer
(int64)
Read Only:
trueValue that uniquely identifies the subinventory of the organization. -
SubinventoryName: string
Title:
SubinventoryRead Only:trueMaximum Length:10Name of the subinventory. -
SupplierId: integer
(int64)
Title:
Supplier IDRead Only:trueValue that uniquely identifies the supplier who ships the item. It's a primary key that the application generates when it creates the supplier. -
SupplierItemId: integer
Read Only:
trueValue that uniquely identifies the supplier number or code for the goods ordered on the order line. -
SupplierItemName: string
Title:
Supplier ItemRead Only:trueMaximum Length:255Name of the supplier item. -
SupplierName: string
Title:
Supplier NameRead Only:trueMaximum Length:360Name of the supplier that ships the item. -
UnitOfMeasure: string
Title:
UOM NameRead Only:trueMaximum Length:25Unit of measure for the item. -
UOMCode: string
Title:
UOM CodeRead Only:trueMaximum Length:3Abbreviation that identifies the unit of measure for the item. -
VmiItemId: integer
(int64)
Read Only:
trueValue that uniquely identifies the vendor-managed inventory item.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : Minimum-Maximum History
Type:
arrayTitle:
Minimum-Maximum HistoryThe Minimum-Maximum History resource gets historical minimum and maximum quantities for an item.
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 : vmiItems-minimumMaximumHistory-item-response
Type:
Show Source
object-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64User who created the minimum and maximum quantity. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueDate and time when the user create the minimum and maximum quantity. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MaximumQuantity: number
Title:
Maximum QuantityRead Only:trueValue that indicates the maximum quantity of the item that can't be exceeded in inventory. -
MinimumQuantity: number
Title:
Minimum QuantityRead Only:trueValue that indicates the minimum quantity of the item that must be maintained in inventory.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- minimumMaximumHistory
-
Parameters:
- VmiItemId:
$request.path.VmiItemId
The Minimum-Maximum History resource gets historical minimum and maximum quantities for an item. - VmiItemId:
Examples
This example describes how to update one item.
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/vmiItems/VmiItemId"
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.
{
"MinimumQuantity":1000,
"MaximumQuantity":2000
}
Example Response Body
The following example includes the contents of the response body in JSON format:
{
"VmiItemId": 3011,
"InventoryItemId": 300100106157944,
"ItemNumber": "SCC-CPU7500U-1",
"ItemDescription": "CPU 7500",
"StatusCode": "ORA_VCS_VMI_OOS",
"Status": "Out of stock",
"SupplierItemId": null,
"SupplierItemName": null,
"ItemCategory": "Miscellaneous_1",
"UnitOfMeasure": "Each",
"UOMCode": "Ea",
"SupplierId": 100000012050091,
"SupplierName": "Discount CPUs",
"OrganizationId": 209,
"OrganizationCode": "M2",
"OrganizationName": "Manufacturing 2",
"ShipToLocationId": 209,
"ShipToLocationName": "M2- Boston",
"SubinventoryId": 300100036649120,
"SubinventoryName": "ABCSUB01",
"SubinventoryDescription": "Subinventory with no locator control",
"Scope": "Subinventory",
"ScopeCode": "ORA_VCS_SCOPE_SHIP_TO_SUB",
"DelivertoLocationId": null,
"DeliverToLocationName": "",
"ProcurementBUId": 204,
"ProcurementBU": "Business Operations",
"MinMaxQuantitySource": "Supplier",
"MinMaxQuantitySourceCode": "ORA_VCS_MIN_MAX_ORIGIN_SUP",
"OnHandQuantity": 0,
"OnOrderQuantity": 0,
"PurchaseOrderQuantity": 0,
"InTransitQuantity": 0,
"ReceivedQuantity": 0,
"ReplenishmentQuantity": 0,
"PendingAcknowledgmentQuantity": 0,
"ItemPlanner": null,
"BuyerId": 100010026863784,
"Buyer": "Johnson, Mark",
"InventoryPlanningOwnerCode": "ORA_VCS_INV_OWNER_SUP",
"InventoryPlanningOwner": "Supplier",
"MinimumQuantity": 1000,
"MaximumQuantity": 2000,
"RequiringReplenishment": "Yes",
"RequiringReplenishmentCode": "ORA_VCS_VMI_REQ_REPL_YES",
"CreatedBy": "JRed",
"CreationDate": "2018-09-28T18:47:00.446+00:00",
"LastUpdateDate": "2018-10-29T18:48:51+00:00",
"LastUpdatedBy": "JRed",
"LastRefreshDate": null,
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/vmiItems/3011",
"name": "vmiItems",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000578"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/vmiItems/3011",
"name": "vmiItems",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/vmiItems/3011/child/minimumMaximumHistory",
"name": "minimumMaximumHistory",
"kind": "collection"
}
]
}