Created a method in singleton api class to make put requests