Longhorn Setting modify through API

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

v3/clusters/c-vftcp/apiservices/v1beta1.longhorn.io/

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