<?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: Get shared-links from file by API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/get-shared-links-from-file-by-api/m-p/136504#M36667</link>
    <description>&lt;P&gt;Checkout the details here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api-explorer.alfresco.com/api-explorer/#/shared-links/listSharedLinks" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api-explorer.alfresco.com/api-explorer/#/shared-links/listSharedLinks&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api-explorer.alfresco.com/api-explorer/#/shared-links/getSharedLink" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api-explorer.alfresco.com/api-explorer/#/shared-links/getSharedLink&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Access link from share app: &lt;A href="http://127.0.0.1:8080/share/s/3ylyPBLMQZmyQY1k7mUi1Q" target="_blank" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8080/share/s/3ylyPBLMQZmyQY1k7mUi1Q&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Only "&lt;SPAN&gt;sharedByUser&lt;/SPAN&gt;" param is supported as per this api:&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/master/remote-api/src/main/java/org/alfresco/rest/api/QuickShareLinks.java#L131" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/blob/master/remote-api/src/main/java/org/alfresco/rest/api/QuickShareLinks.java&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;nodeId= is not supported looks like if you see the above&amp;nbsp;&lt;/SPAN&gt;QuickShareLinks.java class.&lt;/P&gt;
&lt;P&gt;Sample:&lt;/P&gt;

&lt;PRE&gt;curl -X GET -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "accept: application/json" http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links?skipCount=0&amp;amp;maxItems=10cls0&amp;amp;where=(sharedByUser='admin')&lt;/PRE&gt;
&lt;PRE&gt;GET -&amp;gt; http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links?skipCount=0&amp;amp;maxItems=100&amp;amp;where=(sharedByUser='admin')&amp;amp;alf_ticket=TICKET_76ee3861046173941032ca06479efdb70d0e0f0b&lt;/PRE&gt;

&lt;P&gt;You probably want to use sharedId based api, example:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links/&lt;/A&gt;&amp;lt;&lt;STRONG&gt;sharedId&lt;/STRONG&gt;&amp;gt;&lt;/P&gt;

&lt;PRE&gt;curl -X GET -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "accept: application/json" http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links/3ylyPBLMQZmyQY1k7mUi1Q

GET -&amp;gt; http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links/3ylyPBLMQZmyQY1k7mUi1Q?alf_ticket=TICKET_76ee3861046173941032ca06479efdb70d0e0f0b&lt;/PRE&gt;</description>
    <pubDate>Sat, 11 Sep 2021 03:22:36 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2021-09-11T03:22:36Z</dc:date>
    <item>
      <title>Get shared-links from file by API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-shared-links-from-file-by-api/m-p/136503#M36666</link>
      <description>&lt;DIV class="topic-subject-wrapper"&gt;&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;&lt;SPAN&gt;Hi.. how to get a ID from shared-links by API?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I try to get links using&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/alfresco/api/-default-/public/alfresco/versions/1/shared-links?where=(nodeId='XXXXXXXXXXXX&lt;/SPAN&gt;&lt;SPAN&gt;')&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;/alfresco/api/-default-/public/alfresco/versions/1/shared-links?where=(id='XXXXXXXXXXXX')&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;but not success... this message diplayed:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;{"error":{"errorKey":"framework.exception.InvalidProperty","statusCode":400,"briefSummary":"08100110 The property 'id' with value '53c9bb6f-3175-4f2c-8450-4df8e5a59089' isn't supported for EQUALS comparison","stackTrace":"For security reasons the stack trace is no longer displayed, but the property is kept for previous versions","descriptionURL":"https://api-explorer.alfresco.com"}}&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Sep 2021 21:49:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-shared-links-from-file-by-api/m-p/136503#M36666</guid>
      <dc:creator>fumagally</dc:creator>
      <dc:date>2021-09-10T21:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get shared-links from file by API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-shared-links-from-file-by-api/m-p/136504#M36667</link>
      <description>&lt;P&gt;Checkout the details here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api-explorer.alfresco.com/api-explorer/#/shared-links/listSharedLinks" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api-explorer.alfresco.com/api-explorer/#/shared-links/listSharedLinks&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://api-explorer.alfresco.com/api-explorer/#/shared-links/getSharedLink" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api-explorer.alfresco.com/api-explorer/#/shared-links/getSharedLink&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Access link from share app: &lt;A href="http://127.0.0.1:8080/share/s/3ylyPBLMQZmyQY1k7mUi1Q" target="_blank" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8080/share/s/3ylyPBLMQZmyQY1k7mUi1Q&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Only "&lt;SPAN&gt;sharedByUser&lt;/SPAN&gt;" param is supported as per this api:&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/master/remote-api/src/main/java/org/alfresco/rest/api/QuickShareLinks.java#L131" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/blob/master/remote-api/src/main/java/org/alfresco/rest/api/QuickShareLinks.java&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;nodeId= is not supported looks like if you see the above&amp;nbsp;&lt;/SPAN&gt;QuickShareLinks.java class.&lt;/P&gt;
&lt;P&gt;Sample:&lt;/P&gt;

&lt;PRE&gt;curl -X GET -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "accept: application/json" http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links?skipCount=0&amp;amp;maxItems=10cls0&amp;amp;where=(sharedByUser='admin')&lt;/PRE&gt;
&lt;PRE&gt;GET -&amp;gt; http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links?skipCount=0&amp;amp;maxItems=100&amp;amp;where=(sharedByUser='admin')&amp;amp;alf_ticket=TICKET_76ee3861046173941032ca06479efdb70d0e0f0b&lt;/PRE&gt;

&lt;P&gt;You probably want to use sharedId based api, example:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links/&lt;/A&gt;&amp;lt;&lt;STRONG&gt;sharedId&lt;/STRONG&gt;&amp;gt;&lt;/P&gt;

&lt;PRE&gt;curl -X GET -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "accept: application/json" http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links/3ylyPBLMQZmyQY1k7mUi1Q

GET -&amp;gt; http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links/3ylyPBLMQZmyQY1k7mUi1Q?alf_ticket=TICKET_76ee3861046173941032ca06479efdb70d0e0f0b&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Sep 2021 03:22:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-shared-links-from-file-by-api/m-p/136504#M36667</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-09-11T03:22:36Z</dc:date>
    </item>
  </channel>
</rss>

