Responses
-
Locker status updated successfully.
-
400 application/json
Bad request due to invalid input.
-
401 application/json
The requested resource requires authentication.
-
404 application/json
The requested resource was not found.
-
409 application/json
The request conflicts with the current state of the target resource
-
500 application/json
The server encountered an internal error.
PATCH
/lockers/status
curl \
--request PATCH 'https://api.staging.glsnxt.com/ooh/carrier-connector/v1/lockers/status' \
--header "X-API-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"lockerUid":"anyLockerId123","status":"ACTIVE"}'
Request examples
{
"lockerUid": "anyLockerId123",
"status": "ACTIVE"
}
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 (409)
{
"errorCode": "CONFLICT",
"message": "The locker status cannot be updated due to a conflicting state"
}
Response examples (500)
{
"errorCode": "SERVER_ERROR",
"message": "The server encountered an internal error"
}