<?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[Bug in WebApi for zone objects?]]></title><description><![CDATA[<p dir="auto">We are using the WebApi for creating different objects. Creating new nodes or containers works without problems, but the API returns an error when creating a new zone. We are sending this JSON:</p>
<pre><code>{
    objectType: 6
    name: "NewZone"
    parentId: 1
}
</code></pre>
<p dir="auto">We are setting parentId = 1, because the object "Entire Network" has object id 1. This returns an "Internal error" with code 46.</p>
<p dir="auto">I did take a look at the code and it seems impossible to create a node with parentId = 1.<br />
<a href="https://github.com/netxms/netxms/blob/62c5f9ec1837c93023a40a71781ea2c73037b4c9/src/client/nxapisrv/java/src/main/java/org/netxms/websvc/handlers/Objects.java#L377" rel="nofollow ugc">https://github.com/netxms/netxms/blob/62c5f9ec1837c93023a40a71781ea2c73037b4c9/src/client/nxapisrv/java/src/main/java/org/netxms/websvc/handlers/Objects.java#L377</a></p>
<p dir="auto">Can you check this?</p>
]]></description><link>https://forum.netxms.org/topic/8027/bug-in-webapi-for-zone-objects</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:19:43 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/8027.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Sep 2024 11:27:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bug in WebApi for zone objects? on Tue, 08 Oct 2024 12:06:16 GMT]]></title><description><![CDATA[<p dir="auto">Just fixed it. Official fix will be in 5.1, but if you need it to work in 5.0, you can rebuild web API from source branch stable-5.0 - fix is backported here as well.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/33873</link><guid isPermaLink="true">https://forum.netxms.org/post/33873</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 08 Oct 2024 12:06:16 GMT</pubDate></item><item><title><![CDATA[Reply to Bug in WebApi for zone objects? on Wed, 25 Sep 2024 11:18:58 GMT]]></title><description><![CDATA[<p dir="auto">Created <a href="https://track.radensolutions.com/issue/NX-2596" rel="nofollow ugc">https://track.radensolutions.com/issue/NX-2596</a> for this</p>
]]></description><link>https://forum.netxms.org/post/33838</link><guid isPermaLink="true">https://forum.netxms.org/post/33838</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Wed, 25 Sep 2024 11:18:58 GMT</pubDate></item></channel></rss>