Added implementation for multiple records in the POST publish call