Update api with stored scripts