TC-1668 Added used device ids to API, added sample, changed parameters from String to Map, fixed typos
Review fix
review fix