<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ApplyPatches on root element in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/ApplyPatches-on-root-element/m-p/1823371#M15288</link>
    <description>&lt;P&gt;Is it possible to use applypatches with path "/"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var patch = new NxPatch() { Op = NxPatchOperationType.Replace, Path = "/", Value = "{ \"title\": \"Min rubrik\" }" };
var patches = new NxPatch[] { patch };
await genericObject.ApplyPatchesAsync(patches, true);&lt;/LI-CODE&gt;&lt;P&gt;but it complains that my JSON has a bad format (Invalid parameters [8]:Invalid parameters(Patch value not on valid JSON format.)). My intention is not to change only the title, it is a small test. I would like to apply a whole JSON object of properties, because I find it very tedious to search for paths and values in the properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already tried this, and it works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var patch = new NxPatch() { Op = NxPatchOperationType.Replace, Path = "/title", Value = "\"Min rubrik\"" };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so please don't give me that advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jul 2021 16:47:55 GMT</pubDate>
    <dc:creator>ludmillab</dc:creator>
    <dc:date>2021-07-20T16:47:55Z</dc:date>
    <item>
      <title>ApplyPatches on root element</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/ApplyPatches-on-root-element/m-p/1823371#M15288</link>
      <description>&lt;P&gt;Is it possible to use applypatches with path "/"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var patch = new NxPatch() { Op = NxPatchOperationType.Replace, Path = "/", Value = "{ \"title\": \"Min rubrik\" }" };
var patches = new NxPatch[] { patch };
await genericObject.ApplyPatchesAsync(patches, true);&lt;/LI-CODE&gt;&lt;P&gt;but it complains that my JSON has a bad format (Invalid parameters [8]:Invalid parameters(Patch value not on valid JSON format.)). My intention is not to change only the title, it is a small test. I would like to apply a whole JSON object of properties, because I find it very tedious to search for paths and values in the properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already tried this, and it works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var patch = new NxPatch() { Op = NxPatchOperationType.Replace, Path = "/title", Value = "\"Min rubrik\"" };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so please don't give me that advice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 16:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/ApplyPatches-on-root-element/m-p/1823371#M15288</guid>
      <dc:creator>ludmillab</dc:creator>
      <dc:date>2021-07-20T16:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: ApplyPatches on root element</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/ApplyPatches-on-root-element/m-p/1826770#M15365</link>
      <description>&lt;P&gt;No, patching the root element is not supported today. I guess typically if you want to patch the root you can simply set the full property set, but in your case I see you are using the soft patch argument. Is that why you want to patch the root?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 06:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/ApplyPatches-on-root-element/m-p/1826770#M15365</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2021-08-05T06:21:43Z</dc:date>
    </item>
  </channel>
</rss>

