Update Product BinLocations
Use this operation to update existing Product BinLocations object.
Parameters
Body Params | |
---|---|
JSON: | json Product BinLocations details needs to be passed as body parameter,it should be in JSON format. |
XML: | string Product BinLocations details needs to be passed as body parameter,it should be in XML format. |
Path Params | |
---|---|
yourCompany: | string The Company name need to passed in the base URL.For eg. if you enter xyzcompany name, the url https://{yourCompany}.agiliron.net/agiliron/api-40.php/ProductsBinLocations will change to https://xyzcompany.agiliron.net/agiliron/api-40.php/ProductsBinLocations |
Header Params | |
---|---|
Accept: | string Response header need to be passed for eg. application/json or application/xml. |
Query Auth | |
---|---|
key: | string API key needs to be passed in this variable.The option to enter API key will appear when you click on Try it button.This will be the first option in AUTHENTICATION block.Default is SET to 0. |
Header Auth | |
---|---|
apiKey: | string Dedicated API key needs to be passed in this variable via header.The option to enter API key will appear when you click on Try it button.This will be the second option in AUTHENTICATION block.Default is SET to 0. |
Sample Code
{
"ProductsBinLocations": {
"ProductsBinLocation": [
{
"ProductCode": "Product-1",
"ProductName": "Product1",
"StockLocation": "OAK",
"BinLocation": "BinLocation A",
"Quantity": "25",
"MatrixSKUCode": null,
"CreatedBy": "admin",
"CreatedTime": "11-22-2021 11:54:29",
"ModifiedTime": "11-22-2021 11:54:29"
},
{
"ProductCode": "Product-1",
"ProductName": "Product1",
"StockLocation": "OAK",
"BinLocation": "BinLocation B",
"Quantity": "25",
"MatrixSKUCode": null,
"CreatedBy": "admin",
"CreatedTime": "11-22-2021 11:54:29",
"ModifiedTime": "11-22-2021 11:54:29"
},
{
"ProductCode": "Product-1",
"ProductName": "Product1",
"StockLocation": "OAK",
"BinLocation": "BinLocation C",
"Quantity": "25",
"MatrixSKUCode": null,
"CreatedBy": "admin",
"CreatedTime": "11-22-2021 11:54:29",
"ModifiedTime": "11-22-2021 11:54:29"
}
]
}
}
<ProductsBinLocations>
<ProductsBinLocation>
<ProductCode>Product-1</ProductCode>
<ProductName>Product1</ProductName>
<StockLocation>OAK</StockLocation>
<BinLocation>BinLocation A</BinLocation>
<Quantity>25</Quantity>
<MatrixSKUCode></MatrixSKUCode>
<CreatedBy>admin</CreatedBy>
<CreatedTime>11-22-2021 11:54:29</CreatedTime>
<ModifiedTime>11-22-2021 11:54:29</ModifiedTime>
</ProductsBinLocation>
<ProductsBinLocation>
<ProductCode>Product-1</ProductCode>
<ProductName>Product1</ProductName>
<StockLocation>OAK</StockLocation>
<BinLocation>BinLocation B</BinLocation>
<Quantity>25</Quantity>
<MatrixSKUCode></MatrixSKUCode>
<CreatedBy>admin</CreatedBy>
<CreatedTime>11-22-2021 11:54:29</CreatedTime>
<ModifiedTime>11-22-2021 11:54:29</ModifiedTime>
</ProductsBinLocation>
<ProductsBinLocation>
<ProductCode>Product-1</ProductCode>
<ProductName>Product1</ProductName>
<StockLocation>OAK</StockLocation>
<BinLocation>BinLocation C</BinLocation>
<Quantity>25</Quantity>
<MatrixSKUCode></MatrixSKUCode>
<CreatedBy>admin</CreatedBy>
<CreatedTime>11-22-2021 11:54:29</CreatedTime>
<ModifiedTime>11-22-2021 11:54:29</ModifiedTime>
</ProductsBinLocation>
</ProductsBinLocations>
Sample Response
{
"MCM": {
"response": {
"objectType": "Products",
"syncTime": "2024-08-28 12:10:25"
},
"parameters": {
"results": {
"message": {
"success_message": {
"productsbinlocations": [
{
"binlocation": "BinLocation A"
},
{
"binlocation": "BinLocation B"
},
{
"binlocation": "BinLocation C"
}
]
},
"error_message": null
}
}
}
}
}
<MCM>
<response>
<objectType>Products</objectType>
<syncTime>2024-08-28 12:10:25</syncTime>
</response>
<parameters>
<results>
<message>
<success_message>
<productsbinlocations>
<binlocation>BinLocation A</binlocation>
</productsbinlocations>
<productsbinlocations>
<binlocation>BinLocation B</binlocation>
</productsbinlocations>
<productsbinlocations>
<binlocation>BinLocation C</binlocation>
</productsbinlocations>
</success_message>
<error_message />
</message>
</results>
</parameters>
</MCM>
WADL
<?xml version="1.0" encoding="utf-8"?>
<application>
<resources base="https://{yourCompany}.agiliron.net/agiliron/api-40/">
<resource path="ProductsBinLocation">
<method name="PUT">
<request>
<param name="key" type="xsd:string" style="query" required="true"/>
<param name="ProductName" type="xsd:string" style="body" required="true"/>
<param name="ProductCode" type="xsd:string" style="body" required="true"/>
<param name="StockLocation" type="xsd:string" style="body"/>
<param name="BinLocation" type="xsd:string" style="body"/>
<param name="Quantity" type="xsd:int" style="body"/>
<param name="MatrixSKUCode" type="xsd:string" style="body"/>
<param name="CreatedBy" type="xsd:date" style="body"/>
<param name="CreatedTime" type="xsd:date" style="body"/>
<param name="ModifiedTime" type="xsd:date" style="body"/>
</request>
<response status="200">
<representation mediaType="application/xml" element="yn:ResultSet"/>
</response>
<response status="400">
<representation mediaType="application/xml" element="ya:Error"/>
</response>
</method>
</resource>
</resources>
</application>
Updated 2 months ago