<?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 REST API update associations in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-update-associations/m-p/97587#M28538</link>
    <description>&lt;P&gt;I ran into a problem: I have mandatory=true and many=false association. This is very common thing! How can I update it?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I can't delete it (and then add new)&lt;/STRONG&gt; by DELETE&amp;nbsp;&lt;SPAN&gt;http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/a5683447-7f4b-4924-af8a-021598f72708/targets/f5e9e246-bb59-45dd-a6ec-167aa084bbb3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;BR /&gt;09090169 Found 1 integrity violations:\nThe association target multiplicity has been violated: \n Source Node: workspace://SpacesStore/a5683447-7f4b-4924-af8a-021598f72708\n Association: Association[ class=ClassDef[name={&lt;A href="http://www.test.company.com/model/content/1.0}test" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.test.company.com/model/content/1.0}test&lt;/A&gt;], name={&lt;A href="http://www.test.company.com/model/content/1.0}testAssoc" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.test.company.com/model/content/1.0}testAssoc&lt;/A&gt;, target class={&lt;A href="http://www.alfresco.org/model/content/1.0}person" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.alfresco.org/model/content/1.0}person&lt;/A&gt;, source role=null, target role=null]\n Required target Multiplicity: 1..1\n Actual target Multiplicity: 0"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I can't add new&amp;nbsp;(and then delete old)&lt;/STRONG&gt;&amp;nbsp;by POST&amp;nbsp;&lt;SPAN&gt;http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/a5683447-7f4b-4924-af8a-021598f72708/targets&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;BR /&gt;"09090166 Node association already exists from a5683447-7f4b-4924-af8a-021598f72708 to f5e9e246-bb59-45dd-a6ec-167aa084bbb3"&lt;/P&gt;&lt;P&gt;Is this&amp;nbsp;&lt;SPAN&gt;deadlock? If yes, then this REST API is&amp;nbsp;absolutely not suitable&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2019 12:24:47 GMT</pubDate>
    <dc:creator>soloff</dc:creator>
    <dc:date>2019-10-09T12:24:47Z</dc:date>
    <item>
      <title>REST API update associations</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-update-associations/m-p/97587#M28538</link>
      <description>&lt;P&gt;I ran into a problem: I have mandatory=true and many=false association. This is very common thing! How can I update it?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I can't delete it (and then add new)&lt;/STRONG&gt; by DELETE&amp;nbsp;&lt;SPAN&gt;http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/a5683447-7f4b-4924-af8a-021598f72708/targets/f5e9e246-bb59-45dd-a6ec-167aa084bbb3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;BR /&gt;09090169 Found 1 integrity violations:\nThe association target multiplicity has been violated: \n Source Node: workspace://SpacesStore/a5683447-7f4b-4924-af8a-021598f72708\n Association: Association[ class=ClassDef[name={&lt;A href="http://www.test.company.com/model/content/1.0}test" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.test.company.com/model/content/1.0}test&lt;/A&gt;], name={&lt;A href="http://www.test.company.com/model/content/1.0}testAssoc" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.test.company.com/model/content/1.0}testAssoc&lt;/A&gt;, target class={&lt;A href="http://www.alfresco.org/model/content/1.0}person" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.alfresco.org/model/content/1.0}person&lt;/A&gt;, source role=null, target role=null]\n Required target Multiplicity: 1..1\n Actual target Multiplicity: 0"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I can't add new&amp;nbsp;(and then delete old)&lt;/STRONG&gt;&amp;nbsp;by POST&amp;nbsp;&lt;SPAN&gt;http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/a5683447-7f4b-4924-af8a-021598f72708/targets&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;BR /&gt;"09090166 Node association already exists from a5683447-7f4b-4924-af8a-021598f72708 to f5e9e246-bb59-45dd-a6ec-167aa084bbb3"&lt;/P&gt;&lt;P&gt;Is this&amp;nbsp;&lt;SPAN&gt;deadlock? If yes, then this REST API is&amp;nbsp;absolutely not suitable&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 12:24:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-update-associations/m-p/97587#M28538</guid>
      <dc:creator>soloff</dc:creator>
      <dc:date>2019-10-09T12:24:47Z</dc:date>
    </item>
  </channel>
</rss>

