# Problem when restarting Orthanc via API /tools/reset

**URL:** https://discourse.orthanc-server.org/t/problem-when-restarting-orthanc-via-api-tools-reset/5183
**Category:** General
**Tags:** rest-api
**Created:** [September 20, 2024, 10:41am UTC](https://discourse.orthanc-server.org/t/problem-when-restarting-orthanc-via-api-tools-reset/5183 "2024-09-20T10:41:27Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![alainmazy](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/alainmazy/32/1576_2.png) [@alainmazy](https://discourse.orthanc-server.org/u/alainmazy)
#### Post date: [September 27, 2024, 12:50pm UTC](https://discourse.orthanc-server.org/t/problem-when-restarting-orthanc-via-api-tools-reset/5183/6 "2024-09-27T12:50:10Z")

</div>

According to my notes in the TODO:

The plugin does not support calls to ‘curl [http://localhost:8042/tools/reset](http://localhost:8042/tools/reset) -d “”’  
if the script registers the OnChangeCallback:

```
import orthanc

def OnChange(changeType, level, resource):
  print("OnChange")
orthanc.RegisterOnChangeCallback(OnChange)

```

But, on my side, I have no time to investigate right now.

Alain

---

_[View the full topic](https://discourse.orthanc-server.org/t/problem-when-restarting-orthanc-via-api-tools-reset/5183)._
