# HG changeset patch
# User Alain Mazy <alain@mazy.be>
# Date 1604585390 -3600
# Node ID fd5c1410db5bdfb6c47c64590fd51a12df6a0869
# Parent  2c8f4eca3cd262a3115fa44321699f662bf34278
doc for RestApiPostAfterPlugins

diff -r 2c8f4eca3cd2 -r fd5c1410db5b Sphinx/source/plugins/python.rst
--- a/Sphinx/source/plugins/python.rst	Thu Nov 05 07:36:18 2020 +0100
+++ b/Sphinx/source/plugins/python.rst	Thu Nov 05 15:09:50 2020 +0100
@@ -360,6 +360,19 @@
   orthanc.RegisterOnChangeCallback(OnChange)
 
 
+Note that, if you want to use an orthanc plugin to transfer the study,
+you should use the ``RestApiPostAfterPlugins()`` method::
+
+  import orthanc
+
+  def OnChange(changeType, level, resourceId):
+      if changeType == orthanc.ChangeType.STABLE_STUDY:
+          print('Stable study: %s' % resourceId)
+          orthanc.RestApiPostAfterPlugins('/dicom-web/servers/sample/store', resourceId)
+
+  orthanc.RegisterOnChangeCallback(OnChange)
+
+
 Rendering a thumbnail using PIL/Pillow
 ......................................