code: def put(self, device_id: int) -> Device:
          
          device = self._get_or_abort(device_id)
          self.update(device)
          session.commit()
          session.add(device)
          return device
docs: Updates the Device Resource with the
          name.