REST API: set: service

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

REST API: set: service

L1 Bithead
Hi,
 
I tried to set a new service using action=set and it gives me an error 
"set failed, may need to override template object first
And if I use action=override
"Object cannot be overridden
r
Can anyone help me to get this done?
 
https://[IP-ADDRESS]/api/?type=config&action=set&key=[AUTHKEY]&xpath=/config/devices/entry/vsys/entry[@name=%27vsys1%27]/service/entry/[@name=%27huuhaa%27]&element=<protocol>tcp<port>555</port></protocol>

 

 
1 accepted solution

Accepted Solutions

L5 Sessionator

I have tried the following syntax and it has worked for me

 

https://10.50.243.57/api/?type=config&action=set&key=LUFRPT1wTlZDZzlqdVhncWpMcE9QVG9LSTF0OTlBWG89M0R...

 

Let us know if that worked or not.

 

Rate the helpful answer

 

View solution in original post

5 REPLIES 5

L5 Sessionator

I have tried the following syntax and it has worked for me

 

https://10.50.243.57/api/?type=config&action=set&key=LUFRPT1wTlZDZzlqdVhncWpMcE9QVG9LSTF0OTlBWG89M0R...

 

Let us know if that worked or not.

 

Rate the helpful answer

 

Great, big thanks

Hi,

 

i am facing the same error. 

 

The link to the solution is truncated. Can anyone advise on the correct link to use? 

https://10.50.243.57/api/?type=config&action=set&key=LUFRPT1wTlZDZzlqdVhncWpMcE9QVG9LSTF0OTlBWG89M0R...

 

click the link, and check the opened address from address line. 

thanks so much! it helped in resolving my problem. 

  • 1 accepted solution
  • 7943 Views
  • 5 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!