updated claimDevice rest api to use params instead of query