<?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 Re: REST API endpoint to add aspects to a file in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-endpoint-to-add-aspects-to-a-file/m-p/23002#M10036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan,&amp;nbsp;this is some great information. Thank you! I will try both approaches.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a follow-up question though.&amp;nbsp;To enable users to pick new aspects, I will have to display all available aspects for a file in a list.&amp;nbsp;Where can I retrieve the information which aspects are available for a given file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2019 13:46:43 GMT</pubDate>
    <dc:creator>onkovic</dc:creator>
    <dc:date>2019-02-07T13:46:43Z</dc:date>
    <item>
      <title>REST API endpoint to add aspects to a file</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-endpoint-to-add-aspects-to-a-file/m-p/23000#M10034</link>
      <description>I am trying to create an ADF component which allows users to add new aspects to a document, similar to the Manage Aspects button in Share. However, I do not find a corresponding method in the Angular class&amp;nbsp;AlfrescoApi, so I guess I will have to write my own service which first fetches all available</description>
      <pubDate>Wed, 06 Feb 2019 16:20:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-endpoint-to-add-aspects-to-a-file/m-p/23000#M10034</guid>
      <dc:creator>onkovic</dc:creator>
      <dc:date>2019-02-06T16:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: REST API endpoint to add aspects to a file</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-endpoint-to-add-aspects-to-a-file/m-p/23001#M10035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please also note that aspects will be auto-added when you set one or more properties within the aspect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you want to have fine-grained control, for example to remove an aspect (with all it's properties) or to add a so-called "marker" aspect (hat has no properties) then you should be able to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNode" title="https://api-explorer.alfresco.com/api-explorer/#!/nodes/updateNode" rel="nofollow noopener noreferrer"&gt;Alfresco Content Services REST API Explorer&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #faf5ee; border: 0px; font-weight: bold; font-size: 14.4px;"&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #faf5ee;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if you want to add or remove aspects, then you must use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #faf5ee; border: 0px; font-weight: bold; font-size: 14.4px;"&gt;&lt;STRONG&gt;GET /nodes/{nodeId}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #faf5ee;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;first to get the complete set of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #faf5ee; border: 0px; font-size: 14.4px;"&gt;&lt;EM&gt;aspectNames&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #faf5ee;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't had a chance to&amp;nbsp;test JavaScript API (or check code) to see if you can do update "aspectNames" (via the "updateNode" API) ... please let us know if this&amp;nbsp;works ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 12:28:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-endpoint-to-add-aspects-to-a-file/m-p/23001#M10035</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2019-02-07T12:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: REST API endpoint to add aspects to a file</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rest-api-endpoint-to-add-aspects-to-a-file/m-p/23002#M10036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jan,&amp;nbsp;this is some great information. Thank you! I will try both approaches.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a follow-up question though.&amp;nbsp;To enable users to pick new aspects, I will have to display all available aspects for a file in a list.&amp;nbsp;Where can I retrieve the information which aspects are available for a given file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 13:46:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rest-api-endpoint-to-add-aspects-to-a-file/m-p/23002#M10036</guid>
      <dc:creator>onkovic</dc:creator>
      <dc:date>2019-02-07T13:46:43Z</dc:date>
    </item>
  </channel>
</rss>

