Is there anyway I can append to the commends field via the API?

I know I can "get" the current value and then append my data and run a "set" but I think I have hit a limit somewhere which makes the encoded URL too large - or some other web server limit.

I am trying to append to a comment that might already have a 1000 lines. I have checked in the GUI and I created a 6000+ line comment and it saves OK - but I could not set it back again via the API.

Is there another "POST" or "PUT" web call I can make with the data?

Thanks for any help, Steve.


Article Comments

Hi,

Have you tried to execute the same API Call again and checked if the comments were set afterwards?

Kind regards


Nov, 2019 - Permalink

I can successfully call the API to set the comments field if the value is 50 lines or so and encoded.

However, the API fails if I try to send an encoded 1000 multi-line value. The failure was an authentication error, and this seems to be caused by the (very long!) URL being truncated - as I had included the username and password parameters on the end of the URL.

So, the short answer is not he comments did not updated when I try to set a very large comment.

I was hoping that there would be some way to append to the comment field that did not involve reading the current value and then setting it back.

Cheers. Steve


Nov, 2019 - Permalink

Hi,

I would ask you to contact the Paessler Technical Support support@paessler.com and provide us the used URL. Maybe we can find the reason when we can get a view on the URL.

Kind regards


Nov, 2019 - Permalink