Longhorn Setting modify through API

I am trying to modify the longhorn settings through Rancher API.


Please let me know How we can do the setting modification like “BackupTarget” via API/command line.

I have checked API is available only for Rancher

You can follow this document Longhorn | Documentation to write a Python script to control Longhorn