Harbor Gateway
  1. Lockers
Harbor Gateway
  • Harbor Gateway API
    • Health & Status
      • Admin interface
      • Health check
    • Transactions
      • List all transactions
      • Create a transaction
      • Get transaction details
      • Release transaction
      • Open locker by transaction ID
    • Lockers
      • List all lockers
      • Get locker details
      • Open locker by ID
      • Open all lockers
    • System
      • Get system information
      • Update system configuration
      • Get system logs
    • Schemas
      • Locker
      • TransactionResponse
      • LockController
      • System
      • LogEntry
      • OperationResponse
      • LockerOperationResponse
      • MultiStatusOperationResponse
      • OpenAllLockersResponse
      • Error
  • Harbor Gateway Admin API
    • Authentication
      • Login with Basic Auth and receive session token
      • Logout and invalidate session token
    • Controllers
      • List all lock controllers
      • Manually add a lock controller
      • Trigger manual mDNS scan
      • Get controller details
      • Update controller settings
      • Remove controller from system
      • Replace a failed controller
      • Adjust locker count for controller
    • Lockers
      • Update locker service state
        PATCH
    • System
      • Refresh network information
      • Reboot gateway system
    • Diagnostics
      • Test Sentry error tracking integration
    • Schemas
      • Schemas
        • Controller
        • ControllerDetails
        • CreateControllerRequest
        • AdjustLockerCountResponse
        • OperationResponse
        • Error
      • Response
        • Unauthorized
        • NotFound
        • InternalServerError
  1. Lockers

Update locker service state

PATCH
/lockers/{lockerId}
Update a locker's service state (enable/disable for maintenance).
Mark out of service:
Administratively disable a locker for maintenance or due to hardware failure.
Locker becomes unavailable for new transactions. Existing transactions are
preserved but may not be openable if hardware has failed.
Set outOfService: true with reasonCode and reason fields.
Return to service:
Re-enable a locker that was previously marked out of service. Locker becomes
available for new transactions if operational and not assigned.
Set outOfService: false. The reasonCode and reason fields are optional
and will be cleared if not provided.

Request

Authorization
Basic Auth
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
or
API Key
Add parameter in header
X-Session-Token
Example:
X-Session-Token: ********************
or
Path Params

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Locker service state updated successfully
Body

🟠400Bad Request
🟠404Not Found
🟠409Conflict
🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/lockers/' \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "outOfService": true,
    "reasonCode": "MANUAL_DISABLE",
    "reason": "string"
}'
Response Response Example
200 - Example 1
{
    "success": true
}
Modified at 2025-11-27 00:06:25
Previous
Adjust locker count for controller
Next
Refresh network information
Built with