I think we are still missing preference? Should be similar to the get API.