Update apipatterns.rst