# Longhorn Setting modify through API

**URL:** <https://forums.suse.com/t/longhorn-setting-modify-through-api/19347>\
**Category:** SUSE Storage\
**Created:** [January 21, 2021, 4:28pm UTC](https://forums.suse.com/t/longhorn-setting-modify-through-api/19347 "2021-01-21T16:28:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajithen](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@ajithen](https://forums.suse.com/u/ajithen)\
**Post date:** [January 21, 2021, 4:28pm UTC](https://forums.suse.com/t/longhorn-setting-modify-through-api/19347/1 "2021-01-21T16:28:13Z")

</div>

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

```auto
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

---

<div class="post-metadata">

**Author:** ![PhanLe0110](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/phanle0110/32/7022_2.png) [@PhanLe0110](https://forums.suse.com/u/PhanLe0110)\
**Post date:** [January 26, 2021, 7:28pm UTC](https://forums.suse.com/t/longhorn-setting-modify-through-api/19347/2 "2021-01-26T19:28:47Z")

</div>

You can follow this document [Longhorn | Documentation](https://longhorn.io/docs/1.1.0/references/longhorn-client-python/) to write a Python script to control Longhorn
