update api by creating types