<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[pushdata webapi]]></title><description><![CDATA[<p dir="auto">Hi,<br />
How can i use curl to push dci data on remote netxms host?<br />
From changelog i see push dci via webapi feature is already implemented (even if it's not documented), but i always get 404 Not Found -&gt; error 46<br />
I also put debug to 6, but i get no log about webapi.</p>
<p dir="auto">This is an example:</p>
<p dir="auto">/usr/bin/curl -u admin:XXXXXX -H "Accept: application/json" -H "Content-Type:application/json" --data '{"login":"admin", "password":"XXXXX","data": {"node",1234,"OK" }}' -v "<a href="http://x.x.x.x:8080/webapi/pushData" rel="nofollow ugc">http://x.x.x.x:8080/webapi/pushData</a>" </p>
<p dir="auto">&gt; User-Agent: curl/7.64.0<br />
&gt; Accept: application/json<br />
&gt; Content-Type:application/json<br />
&gt; Content-Length: 41<br />
&gt;<br />
* upload completely sent off: 41 out of 41 bytes<br />
&lt; HTTP/1.1 404 Not Found<br />
&lt; Content-Type: application/json;charset=utf-8<br />
&lt; Date: Fri, 26 Aug 2022 10:25:21 GMT<br />
&lt; Accept-Ranges:  none<br />
&lt; Server: Restlet-Framework/2.4.3<br />
&lt; Content-Length: 43<br />
&lt;<br />
* Connection #0 to host X.X.X.X left intact<br />
{"description":"Internal error","error":46}</p>
]]></description><link>https://forum.netxms.org/topic/7502/pushdata-webapi</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:26:09 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7502.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 26 Aug 2022 10:37:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to pushdata webapi on Thu, 01 Sep 2022 08:58:25 GMT]]></title><description><![CDATA[<p dir="auto">i found that i was using a wrong api url (retrived from github): /push-data and not /pushData<br />
Now it works.</p>
]]></description><link>https://forum.netxms.org/post/31815</link><guid isPermaLink="true">https://forum.netxms.org/post/31815</guid><dc:creator><![CDATA[samuelet]]></dc:creator><pubDate>Thu, 01 Sep 2022 08:58:25 GMT</pubDate></item><item><title><![CDATA[Reply to pushdata webapi on Tue, 30 Aug 2022 06:50:03 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, it's now clear how to send value but unfortunately i still cannot authenticate the POST with the netxms api.<br />
I also tried with the sessesionhandler cookie as explained here:<br />
<a href="https://wiki.netxms.org/wiki/Web_service_API" rel="nofollow ugc">https://wiki.netxms.org/wiki/Web_service_API</a><br />
In my case, i've no proxy in front of it, and with the jetty requestlog i don't see any error except "internal error" .<br />
I'm authenticating with the "admin" user (full rights).<br />
Is there something that i missing to enable?</p>
]]></description><link>https://forum.netxms.org/post/31811</link><guid isPermaLink="true">https://forum.netxms.org/post/31811</guid><dc:creator><![CDATA[samuelet]]></dc:creator><pubDate>Tue, 30 Aug 2022 06:50:03 GMT</pubDate></item><item><title><![CDATA[Reply to pushdata webapi on Mon, 29 Aug 2022 11:58:59 GMT]]></title><description><![CDATA[<p dir="auto">There are two options - to send value for a single DCI or for a number of DCIs (array is used in this case);</p>
<p dir="auto">One value:</p>
<pre><code>{
      nodeId : 10,
      dciId : 20,
      value : "Value"
}
</code></pre>
<p dir="auto">Or, alternatively node name and DCI name (parameter name) can be used:</p>
<pre><code>{
      nodeName : "Node name",
      dciName : "DCI name",
      value : "Value"
}
</code></pre>
<p dir="auto">When sending multiple values:</p>
<pre><code>data :
[
   {
      nodeId : 10,
      dciId : 20,
      value : "Value"
   },
   {
      nodeName : "Node name",
      dciName : "DCI name",
      value : "Value"
   }
]
</code></pre>
]]></description><link>https://forum.netxms.org/post/31810</link><guid isPermaLink="true">https://forum.netxms.org/post/31810</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Mon, 29 Aug 2022 11:58:59 GMT</pubDate></item></channel></rss>