cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Who rated this post

Hi @mrzepa2 @grchew,

Does this help, for the example of a variable which is an IP address?

https://{{host}}/api/?key={{key}}&type=config&action=set&xpath=/config/devices/entry[@name='localhost.localdomain']/template-stack/entry[@name='{{template-stack-name}}']/devices/entry[@name='{{serial-number}}']/variable&element=<entry name="{{var-name}}"><type><ip-netmask>{{object-ip-1}}</ip-netmask></type></entry>

 

Help the community: "Like" helpful comments, and click "Accept as Solution" if you found your answer 🙂
Who rated this post