- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-26-2018 10:44 PM - edited 02-26-2018 10:46 PM
Hi I'm creating a new admin role via api but it is not working. Here is my complete request:
https://192.168.10.1/api/?type=config&action=set&xpath=/config/shared/admin-role/entry[@name='test_name']/role/device/xmlapi<config>enable</config>&key=mykeyhere
The error I get is:
03-20-2018 12:50 PM
You have too much of your configuration in the xpath - since much of that configuartion does nto exist until you create your role.
I think your xpath should be /config/shared/admin-role and all the details of your role should be in the element XML.
SET type of config commands are very similar to EDIT, hopefully the documentation for those will help
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!