https://xcp-ng.org/docs/api.html
Restarting the API
Sometimes, you might want to restart the toolstack (API and storage stack). You can do it with the following command from the host console (or directly with Xen Orchestra):
xe-toolstack-restart
TIP
Restarting XAPI won't affect any running VMs. However, all backup/export tasks will be removed.