update create and show api