update the mock up api