Skip to main content

/admin/unpairLocation: Unpair all devices assigned to a location.

GET 

/admin/unpairLocation

What

Removes every device currently paired to the specified location. Each device is deleted individually via the same logic as M:Shigoto.Server.Controllers.AdminController.UnPairDevice(System.String,System.String,System.String), so all client↔location associations are cleaned up correctly.

The locationId is resolved flexibly: the system first looks up the location by its internal ID; if no match is found, it retries using the value as an external ID (assigned by an external system such as a booking or room-management platform). This means callers can pass either identifier without needing to know which type they hold.

Who

Account administrators of the account (and higher).

Login

Login, API key or Sensor signature (all allowed).

Request​

Responses​

All devices for the location successfully unpaired (including zero devices).