Rework devices REST again. Now should work properly.