update the macro for API Manager