Update api script