Update a locker
Update the details of an existing locker, including carrier details, provider details, location, and features.
Path parameters
-
uid
string Required The OOH Platform UID for the locker.
Body
Required
PATCH
/lockers/{uid}
curl \
--request PATCH 'https://api.staging.glsnxt.com/ooh/carrier-connector/v1/lockers/426614174000' \
--header "X-API-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"carrier":{"lockerName":"Fancy Locker 01","lockerId":"CARRIER_LOCKER_001","activationDate":"2025-08-20T00:00:00Z"},"location":{"street":"Main Street","streetNumber":"1","postalCode":"90210","city":"Berlin","lon":-118.2437,"lat":34.0522,"countryCode":"DE"},"metadata":[{"key":"maxWeightCapacity","value":"50kg"}],"features":{"hasScreen":true,"hasPinPad":true,"hasPinBarcodeReader":false}}'
Request examples
{
"carrier": {
"lockerName": "Fancy Locker 01",
"lockerId": "CARRIER_LOCKER_001",
"activationDate": "2025-08-20T00:00:00Z"
},
"location": {
"street": "Main Street",
"streetNumber": "1",
"postalCode": "90210",
"city": "Berlin",
"lon": -118.2437,
"lat": 34.0522,
"countryCode": "DE"
},
"metadata": [
{
"key": "maxWeightCapacity",
"value": "50kg"
}
],
"features": {
"hasScreen": true,
"hasPinPad": true,
"hasPinBarcodeReader": false
}
}
Response examples (200)
{
"uid": "123e4567-e89b-12d3-a456-426614174000",
"carrier": {
"lockerName": "Fancy Locker 01",
"lockerId": "CARRIER_LOCKER_001",
"activationDate": "2025-08-20T00:00:00Z",
"status": "ACTIVE"
},
"provider": {
"name": "Provider X",
"lockerModel": "Model XYZ",
"lockerVersion": "v2.1",
"lockerUid": "PROVIDER_LOCKER_ABC123"
},
"location": {
"street": "Main Street",
"streetNumber": "1",
"postalCode": "90210",
"city": "Berlin",
"lon": -118.2437,
"lat": 34.0522,
"countryCode": "DE"
},
"features": {
"hasScreen": true,
"hasPinPad": true,
"hasPinBarcodeReader": false
},
"metadata": [
{
"key": "maxWeightCapacity",
"value": "50kg"
}
],
"compartmentTypes": [
{
"size": "SMALL",
"count": 10,
"width": 400,
"height": 200,
"length": 600
},
{
"size": "MEDIUM",
"count": 4,
"width": 400,
"height": 400,
"length": 600
},
{
"size": "LARGE",
"count": 2,
"width": 400,
"height": 800,
"length": 600
}
]
}
Response examples (400)
{
"errorCode": "INVALID_REQUEST",
"message": "Bad request due to invalid input"
}
Response examples (401)
{
"errorCode": "UNAUTHORIZED",
"message": "The requested resource requires authentication"
}
Response examples (404)
{
"errorCode": "NOT_FOUND",
"message": "The requested resource was not found"
}
Response examples (500)
{
"errorCode": "SERVER_ERROR",
"message": "The server encountered an internal error"
}