REST API: set: service

Highlighted
L1 Bithead

REST API: set: service

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>

 

 
Tags (3)
L5 Sessionator

Re: REST API: set: service

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

 

L1 Bithead

Re: REST API: set: service

Great, big thanks

L2 Linker

Re: REST API: set: service

Hi,

 

i am facing the same error. 

 

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

L1 Bithead

Re: REST API: set: service

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

 

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

L2 Linker

Re: REST API: set: service

thanks so much! it helped in resolving my problem. 

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 Live Community as a whole!

The Live Community thanks you for your participation!