<?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[Get all object data via API]]></title><description><![CDATA[<p dir="auto">Is there an example somewhere to return all of the data from an object?  I see the CLI and PHP API wrappers have a "load" method that does this, but it would be nice to have an example of how?</p>
<p dir="auto">Alternatively how do I request just the data for one or two specific categories attached to an object (Contact info, or custom attributes for example).</p>
<p dir="auto">Also, is there an English version of this document please:<br />
<a href="https://kb.i-doit.com/download/attachments/37355644/i-doit%20JSON-RPC%201.8.3.pdf?version=1&amp;modificationDate=1489677685764&amp;api=v2">https://kb.i-doit.com/download/attachments/37355644/i-doit JSON-RPC 1.8.3.pdf?version=1&amp;modificationDate=1489677685764&amp;api=v2</a></p>
]]></description><link>https://community.i-doit.com/topic/3362/get-all-object-data-via-api</link><generator>RSS for Node</generator><lastBuildDate>Sat, 07 Mar 2026 22:21:56 GMT</lastBuildDate><atom:link href="https://community.i-doit.com/topic/3362.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Mar 2018 14:47:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Get all object data via API on Thu, 06 Jan 2022 22:50:14 GMT]]></title><description><![CDATA[<p dir="auto">@arthur-koch<br />
yes it is, but afaik there is no documentation.<br />
In python looks somehow like this:</p>
<pre><code>data = {
    'id': 1,
    'version': '2.0',
    'method': 'cmdb.object_type_categories.read',
    'params': {
        'apikey': self.apikey,
        'language': self.language,
        'type': obj_id 
    },
}
</code></pre>
]]></description><link>https://community.i-doit.com/post/15900</link><guid isPermaLink="true">https://community.i-doit.com/post/15900</guid><dc:creator><![CDATA[uhe]]></dc:creator><pubDate>Thu, 06 Jan 2022 22:50:14 GMT</pubDate></item><item><title><![CDATA[Reply to Get all object data via API on Wed, 02 Jun 2021 12:53:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bheisig" aria-label="Profile: bheisig">@<bdi>bheisig</bdi></a></p>
<p dir="auto">Is the the function to get all categories and it's contents of an object already implemented?</p>
]]></description><link>https://community.i-doit.com/post/15307</link><guid isPermaLink="true">https://community.i-doit.com/post/15307</guid><dc:creator><![CDATA[arthur.koch]]></dc:creator><pubDate>Wed, 02 Jun 2021 12:53:02 GMT</pubDate></item><item><title><![CDATA[Reply to Get all object data via API on Tue, 18 Sep 2018 12:14:25 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for the reply! This sounds much better <img src="https://community.i-doit.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=faf3a255277" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">While I wanted to ask again about this batch requests, I did some additionaly research...</p>
<p dir="auto">The only mentioning of batch request that I found in the i-doit documentation is in the <a href="https://kb.i-doit.com/display/en/Tips+and+Tricks+for+Working+with+the+API#TipsandTricksforWorkingwiththeAPI-UseBatchRequests">"Tips and Tricks" section</a> - the API documentation (<a href="https://kb.i-doit.com/display/en/Methods">1</a>, <a href="https://kb.i-doit.com/display/en/Category+Fields+for+Data+Arrays">2</a>, <a href="https://kb.i-doit.com/display/en/Examples+for+Handling+the+API">3</a>, <a href="https://kb.i-doit.com/pages/viewpage.action?pageId=37355644">4</a>) does not contain a single word.</p>
<p dir="auto">There is the <a href="https://www.jsonrpc.org/specification#batch">JSON RPC 2.0 documentation</a>, which specifies it - but the <a href="https://kb.i-doit.com/download/attachments/37355644/i-doit%20JSON-RPC%201.8.3.pdf?version=1&amp;modificationDate=1489677685764&amp;api=v2">outdated PDF documentation</a> tells me that batch is not supported.</p>
<p dir="auto"><strong>EDIT</strong>: ok, outdated docs tell that batch requests are supported since 1.4...</p>
<p dir="auto">Would be cool to get more information on that topic directly in the docs - because if you really want to do something useful with your API IMO this information is absolutely required. Otherwise you'll waste a lot of time with HTTP requests. And JSON RPC 2.0 is not that well known, that you can assume everybody knows that before. It is neither SOAP nor REST <img src="https://community.i-doit.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=faf3a255277" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
<p dir="auto">Nevertheless - thanks for pointing me in the proper direction! I'll try this now.</p>
]]></description><link>https://community.i-doit.com/post/13624</link><guid isPermaLink="true">https://community.i-doit.com/post/13624</guid><dc:creator><![CDATA[ahrensde]]></dc:creator><pubDate>Tue, 18 Sep 2018 12:14:25 GMT</pubDate></item><item><title><![CDATA[Reply to Get all object data via API on Mon, 17 Sep 2018 15:36:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">you definitely should use batch requests to reduce API requests significantly. Put the 30 <code>cmdb.category.read</code> requests for an object into one batch request. That means for 400 objects you only need 400 batch requests instead of 12.000.</p>
<p dir="auto">In most cases you can combine the 30 <code>cmdb.category.read</code> requests for more than one object into only one batch request. On a fast¹ i-doit host you may put up to ~ 600 requests into one batch request – maybe even more:</p>
<p dir="auto">400 objects x 30 categories / 600 requests per batch request = 20 batch requests</p>
<p dir="auto">Happy coding<br />
— Benjamin</p>
<p dir="auto">¹ for example, fast DB with a lot of i/o (flash memory or everything loaded into ram), 1-2 gigs of RAM for each PHP process</p>
]]></description><link>https://community.i-doit.com/post/13623</link><guid isPermaLink="true">https://community.i-doit.com/post/13623</guid><dc:creator><![CDATA[bheisig]]></dc:creator><pubDate>Mon, 17 Sep 2018 15:36:58 GMT</pubDate></item><item><title><![CDATA[Reply to Get all object data via API on Wed, 12 Sep 2018 17:57:04 GMT]]></title><description><![CDATA[<p dir="auto">I already figured out step one and two. But I stumble upon the third one.</p>
<p dir="auto">Is there a way to receive <strong>all</strong> category related data for an object in one API request? Currently I need to do ~30 requests per object (because there are that many categories attached to it) which performs quite poor when fetching 400 records.</p>
<p dir="auto">12000 HTTP requests for reading the data related to 400 objects is a lot IMO. Is there something I am missing or is this currently not supported? (i-doit 1.11)</p>
]]></description><link>https://community.i-doit.com/post/13614</link><guid isPermaLink="true">https://community.i-doit.com/post/13614</guid><dc:creator><![CDATA[ahrensde]]></dc:creator><pubDate>Wed, 12 Sep 2018 17:57:04 GMT</pubDate></item><item><title><![CDATA[Reply to Get all object data via API on Wed, 20 Jun 2018 08:32:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Sorry for the late answer.</p>
<p dir="auto">To "load" everything about an object:</p>
<ol>
<li>Fetch common information about an object by <code>cmdb.object.read</code> or <code>cmdb.objects.read</code>. Now you know its object type.</li>
<li>Fetch all relevant categories for this object by <code>cmdb.object_type_categories.read</code>. Now you know all category constants.</li>
<li>Read all attributes from every category with a batch request. For every category use  <code>cmdb.category.read</code>.</li>
</ol>
<p dir="auto">Within 3 API requests you know has every detail about an object.</p>
<p dir="auto">In a future release we will enhance the API so only 1 request is needed.</p>
<p dir="auto">At the moment, we are migrating the out-dated PDF documentation <a href="https://kb.i-doit.com/display/en/Methods">to this KB article</a>. I hope it helps.</p>
<p dir="auto">Greetings,<br />
Ben</p>
]]></description><link>https://community.i-doit.com/post/13446</link><guid isPermaLink="true">https://community.i-doit.com/post/13446</guid><dc:creator><![CDATA[bheisig]]></dc:creator><pubDate>Wed, 20 Jun 2018 08:32:18 GMT</pubDate></item></channel></rss>