Create put API connector function

Here is one way to do this:
Quick tips - Looping!