SMART LOCKER API
  1. Bay Management
SMART LOCKER API
  • Web
    • Shifts
      • Shift List
      • Add Shift
      • Update Shift
      • Delete Shift
    • Shift Devices
      • Add Shift Device
      • List Shift Devices
      • Update Shift Device
      • Delete Shift Device
    • Device Management
      • Update Device
      • List Devices
      • Get Device
      • add device
      • edit device
      • delete device
      • devices status
    • Bay Management
      • List Bays
        GET
      • Assign Device to Bay
        PATCH
      • Assign User to Bay
        PATCH
      • Unassign Device
        DELETE
    • Locker Management
      • Locker List
      • Get Locker
      • LockerType
      • maintenance list
      • delete locker
    • User
      • User List
      • Get User
      • add user
      • user edit
      • user delete
    • Group
      • group add
      • group list
      • group view
      • group delete
    • Location
      • Location
      • location add
      • location edit
      • add area
    • Role
      • add role
      • edit role
      • list role
    • Admin Login
      POST
    • Kiosk Login
      POST
    • Country
      GET
    • log list
      GET
  • Smart Locker
    • Locker Status
      POST
    • Open Locker
      POST
    • Start charging
      POST
    • Stop Charging
      POST
    • Charging Status
      POST
  1. Bay Management

Assign User to Bay

Developing
PATCH
/api/bays/1/user
Call this API to associate a device with Cabin

Request

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://smart-locker-api.byrokket.com/api/bays/1/user' \
--header 'Content-Type: application/json' \
--data-raw '{
    "device_id": 2
}'
Response Response Example
update success
{
    "status": "true",
    "message": "Cabin device updated successfully"
}
Modified at 2025-11-06 16:19:28
Previous
Assign Device to Bay
Next
Unassign Device
Built with