Update one packing unit

patch

/fscmRestApi/resources/11.13.18.05/packingUnits/{PackingUnitId}

Request

Path Parameters
  • 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
  • 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".
  • 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
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Contents
Type: array
Title: Contents
Items and LPNs packed in an LPN.
Show Source
Nested Schema : Content Item Counts
Type: array
Title: Content Item Counts
List of items stored within the LPN in a warehouse.
Show Source
Nested Schema : Inventory Consumption Rules
Type: array
Title: Inventory Consumption Rules
The Packing Units resource manages the operations on packing units.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The note objects resource is used to view the note objects.
Show Source
Nested Schema : packingUnitDFFs
Type: array
Show Source
Nested Schema : Item
Type: array
Title: Item
Detailed breakdown of items stored within an LPN.
Show Source
Nested Schema : LPN Quantities
Type: array
Title: LPN Quantities
Quantities of items stored within an LPN.
Show Source
Nested Schema : LPN Serial Numbers
Type: array
Title: LPN Serial Numbers
Alphanumeric identifier assigned to an individual unit of an item in the LPN.
Show Source
Nested Schema : packingUnits-attachments-item-patch-request
Type: object
Show Source
Nested Schema : packingUnits-contents-item-patch-request
Type: object
Show Source
Nested Schema : Inventory Tracking Attributes
Type: array
Title: Inventory Tracking Attributes
Set of named attributes (project, task, and country of origin) and user-configurable attributes used to track the inventory on hand.
Show Source
Nested Schema : LPN Serial Numbers
Type: array
Title: LPN Serial Numbers
Alphanumeric identifier assigned to an individual unit of an item in the LPN.
Show Source
Nested Schema : packingUnits-contents-contentInventoryAttributes-item-patch-request
Type: object
Show Source
Nested Schema : packingUnits-contents-serials-item-patch-request
Type: object
Show Source
Nested Schema : packingUnits-itemContentCounts-item-patch-request
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-item-patch-request
Type: object
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Contents
Type: array
Title: Contents
Items and LPNs packed in an LPN.
Show Source
Nested Schema : Inventory Consumption Rules
Type: array
Title: Inventory Consumption Rules
The Packing Units resource manages the operations on packing units.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The note objects resource is used to view the note objects.
Show Source
Nested Schema : packingUnitDFFs
Type: array
Show Source
Nested Schema : packingUnits-nestedPackingUnits-attachments-item-patch-request
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-item-patch-request
Type: object
Show Source
Nested Schema : Inventory Tracking Attributes
Type: array
Title: Inventory Tracking Attributes
Set of named attributes (project, task, and country of origin) and user-configurable attributes used to track the inventory on hand.
Show Source
Nested Schema : LPN Serial Numbers
Type: array
Title: LPN Serial Numbers
Alphanumeric identifier assigned to an individual unit of an item in the LPN.
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-contentInventoryAttributes-item-patch-request
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-serials-item-patch-request
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-nestedPackingUnits-item-patch-request
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-notes-item-patch-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : packingUnits-notes-item-patch-request
Type: object
Show Source
Nested Schema : packingUnits-packingUnitDFFs-item-patch-request
Type: object
Show Source
Nested Schema : packingUnits-packingUnitItems-item-patch-request
Type: object
Show Source
Nested Schema : LPN Lots
Type: array
Title: LPN Lots
This list of values includes lots of an item in the LPN.
Show Source
Nested Schema : packingUnits-packingUnitItems-packingUnitItemLots-item-patch-request
Type: object
Show Source
Nested Schema : packingUnits-packingUnitQuantities-item-patch-request
Type: object
Show Source
Nested Schema : packingUnits-packingUnitSerials-item-patch-request
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • 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".
  • 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.
Body ()
Root Schema : packingUnits-item-response
Type: object
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Contents
Type: array
Title: Contents
Items and LPNs packed in an LPN.
Show Source
Nested Schema : Content Item Counts
Type: array
Title: Content Item Counts
List of items stored within the LPN in a warehouse.
Show Source
Nested Schema : Inventory Consumption Rules
Type: array
Title: Inventory Consumption Rules
The Packing Units resource manages the operations on packing units.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The note objects resource is used to view the note objects.
Show Source
Nested Schema : packingUnitDFFs
Type: array
Show Source
Nested Schema : Item
Type: array
Title: Item
Detailed breakdown of items stored within an LPN.
Show Source
Nested Schema : LPN Quantities
Type: array
Title: LPN Quantities
Quantities of items stored within an LPN.
Show Source
Nested Schema : LPN Serial Numbers
Type: array
Title: LPN Serial Numbers
Alphanumeric identifier assigned to an individual unit of an item in the LPN.
Show Source
Nested Schema : packingUnits-attachments-item-response
Type: object
Show Source
Nested Schema : packingUnits-contents-item-response
Type: object
Show Source
Nested Schema : Inventory Tracking Attributes
Type: array
Title: Inventory Tracking Attributes
Set of named attributes (project, task, and country of origin) and user-configurable attributes used to track the inventory on hand.
Show Source
Nested Schema : LPN Serial Numbers
Type: array
Title: LPN Serial Numbers
Alphanumeric identifier assigned to an individual unit of an item in the LPN.
Show Source
Nested Schema : packingUnits-contents-contentInventoryAttributes-item-response
Type: object
Show Source
Nested Schema : packingUnits-contents-serials-item-response
Type: object
Show Source
Nested Schema : packingUnits-itemContentCounts-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-item-response
Type: object
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Contents
Type: array
Title: Contents
Items and LPNs packed in an LPN.
Show Source
Nested Schema : Inventory Consumption Rules
Type: array
Title: Inventory Consumption Rules
The Packing Units resource manages the operations on packing units.
Show Source
Nested Schema : Notes
Type: array
Title: Notes
The note objects resource is used to view the note objects.
Show Source
Nested Schema : packingUnitDFFs
Type: array
Show Source
Nested Schema : packingUnits-nestedPackingUnits-attachments-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-item-response
Type: object
Show Source
Nested Schema : Inventory Tracking Attributes
Type: array
Title: Inventory Tracking Attributes
Set of named attributes (project, task, and country of origin) and user-configurable attributes used to track the inventory on hand.
Show Source
Nested Schema : LPN Serial Numbers
Type: array
Title: LPN Serial Numbers
Alphanumeric identifier assigned to an individual unit of an item in the LPN.
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-contentInventoryAttributes-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-contents-serials-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-nestedPackingUnits-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-notes-item-response
Type: object
Show Source
Nested Schema : packingUnits-nestedPackingUnits-packingUnitDFFs-item-response
Type: object
Show Source
Nested Schema : packingUnits-notes-item-response
Type: object
Show Source
Nested Schema : packingUnits-packingUnitDFFs-item-response
Type: object
Show Source
Nested Schema : packingUnits-packingUnitItems-item-response
Type: object
Show Source
Nested Schema : LPN Lots
Type: array
Title: LPN Lots
This list of values includes lots of an item in the LPN.
Show Source
Nested Schema : packingUnits-packingUnitItems-packingUnitItemLots-item-response
Type: object
Show Source
Nested Schema : packingUnits-packingUnitQuantities-item-response
Type: object
Show Source
Nested Schema : packingUnits-packingUnitSerials-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to update one packing unit.

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/packingUnits/PackingUnitId"

Example 1 cURL Command

Use the following cURL command to submit a request on the REST resource to update packing unit with weights/volumes.

curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/packingUnits/PackingUnitId"

Example 1 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.

{
"GrossWeight": 151.7,
"TareWeight": 1.3,
"NetWeight": 150.4,
"ContainerVolume": 11
}

Example 2 cURL Command

Use the following cURL command to submit a request on the REST resource to update packing unit with weight and descriptive flex fields.

curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/packingUnits/PackingUnitId"

Example 2 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.

 {
"GrossWeight": "1" ,
"packingUnitDFFs": [
{
"LPNId": 300100129350100,
"gs1": "UGS2S2",
"gs2": "14",
"gs3": "GSS16",
"__FLEX_Context": "LPNCSegs",
"lpncseg1":"VAL12",
"lpncseg2":"182",
"lpncseg3":"2017-03-12",
"lpncseg4":"2017-03-12T00:00:00.000-00:00"
}
]
}

Example 3 cURL Command

Use the following cURL command to submit a request on the REST resource to update packing unit with container item number.

curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/packingUnits/PackingUnitId"

Example 3 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.

   {
"ContainerItemNumber" : "LOG-C2"
                   }

Back to Top