<?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[API cmdb.object.create categories]]></title><description><![CDATA[<p dir="auto">Hallo,</p>
<p dir="auto">laut <a href="https://kb.i-doit.com/en/i-doit-add-ons/api/methods/cmdb.object.html#cmdbobjectcreate">Doku</a> kann man bei cmdb.object.create auch gleich Attribute in Kategorien schreiben, was einige API Aufrufe erspart:</p>
<p dir="auto">categories<br />
Object with Array	<br />
Category constant, for example: "C__CATG__MODEL" with keys in a array</p>
<p dir="auto">Nach etwas rumprobieren habe ich folgende Möglichkeit gefunden mit der ich Daten schreiben kann:</p>
<pre><code>{
    "version": "2.0",
    "method": "cmdb.object.create",
    "params": {
        "apikey": "*****",
        "language": "en",
        "type": "C__NEUER_OBJEKTTYP_ZZ_ALLE_KATEGORIEN",
        "title": "test_2025-11-20-05",
        "categories" : {
          "C__CATG__CUSTOM_FIELDS_NETZ_INFO" : [
            {"f_text_nautobot_name" : "asdf"},
            {"f_text_nautobot_id" : "12335"}
          ]
        }
    },
    "id": 1
}
</code></pre>
<p dir="auto">Kann jemand bestätigen, dass dieses Format richtig ist?<br />
Wenn ja, wäre es sinnvoll, die API Dokumentation um so ein Beispiel zu erweitern und evtl. das "keys in array" besser zu formulieren. Es gibt ja mehrere Möglichkeiten dies zu implementieren.</p>
<p dir="auto">Grüße<br />
Leo</p>
]]></description><link>https://community.i-doit.com/topic/5410/api-cmdb.object.create-categories</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 02:01:26 GMT</lastBuildDate><atom:link href="https://community.i-doit.com/topic/5410.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 Nov 2025 19:25:29 GMT</pubDate><ttl>60</ttl></channel></rss>