Error: Share: This link could not be found in the system

  • 1
  • Question
  • Updated 3 months ago
When posting a Shares request, I got the mentioned error!

My URL https://xxx.sf-api.com/sf/v3/Shares?notify=false

My post body looks like
{
    "MaxDownloads": -1,
    "RequireLogin": false,
    "Items": [
        {
            "Id": "fib7343d-3297-c6b8-5e34-7a582b786147"
        }
    ],
    "RequireUserInfo": false,
    "ShareType": "Send",
    "UsesStreamIDs": false
}
The Id is ok, when sending a wrong Id I got a different error!
Item not found: The item that you requested could not be found in the system.

regards
Meex
Photo of Markus Reich

Markus Reich

  • 3 Posts
  • 0 Reply Likes
  • frustrated

Posted 3 months ago

  • 1
Photo of Dale Smith

Dale Smith, Software Engineer

  • 178 Posts
  • 23 Reply Likes
Markus,

Does the user you are operating the API under have access to that item? If not, that could prompt this message. In order to check, you could make a call to:

https://account.sf-api.com/sf/v3/Items(id)/AccessControls

And check the return value there.

Let us know if that doesn't help.

Thanks,
Dale
Photo of Dale Smith

Dale Smith, Software Engineer

  • 178 Posts
  • 23 Reply Likes
Another rep also looked into this a bit, and based on the above file id, it looks like the account itself is in our EU control plane. If that is the case, then its necessary to make the call to the api on the correct control plane as well, ie: https://account.sf-api.eu/sf/v3/Shares

Thanks,
Dale 
Photo of Markus Reich

Markus Reich

  • 3 Posts
  • 0 Reply Likes
perfect, changing to .eu solved the issue!!!! thx