Needed to specify content type and use json method to serialize json for put request