Skip to content

Update Product Per SubBin

Updates a given ProductId’s Products Per Subbin Value.

Direction WMS → WCS

HTTP Method POST

Path /api/product/updatePpsb

Field notes:

Field NameData TypeDescriptionNotes
productIdStringA Unique product identifier for the product whose ppsb must be updatedMust contain at least 1 non-whitespace character
productsPerSubbinObject (Map)A Map representing the maximum number of product units that can be stored in each bin type in a single compartment.{binType1: units1, binType2: units2, ..} The number of product units must not be a negative value. Currently supported bin Type values: 1/1 (1 row, 1 compartment), 2/2 (2 rows, 4 compartments), 2/4 (2 rows, 8 compartments)

Example Request Body

{
"productId": "ABC123",
"productsPerSubbin": {
"1/1": 24,
"2/2": 36,
"3/1": 12
}
}

202: Product passed validation

{
"message": "Accepted"
}

400: Product failed validation

{
"message": "Bad Request",
"errors": [
{
"message": "Product field productId must contain at least 1 non-whitespace character",
"path": "productId"
},
{
"message": "The number of units must not be a negative value",
"path": "productsPerSubbin"
}
]
}

401: Access denied, Invalid Authentication

{
"message": "Unauthorized"
}