Adding Fixing changes to API endpoint