Update compartment allocation
Update the compartment allocation for a given parcel based on new dimensions. This is useful when reallocating parcels to different compartments.
PATCH
/app/lockers/{externalLockerId}/compartments
curl \
--request PATCH 'https://api.staging.glsnxt.com/ooh/carrier-connector/v1/app/lockers/{externalLockerId}/compartments?parcelId=string' \
--header "X-APP-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"lockerModuleId":"module789","depth":140,"height":260,"width":400,"compartmentName":"MEDIUM"}'
Request examples
{
"lockerModuleId": "module789",
"depth": 140,
"height": 260,
"width": 400,
"compartmentName": "MEDIUM"
}
Response examples (401)
{
"error": "Unauthorized"
}
Response examples (400)
{
"error": "Invalid request. Check parameters and try again."
}
Response examples (500)
{
"error": "Internal Server Error"
}