Jump to content
Welcome to our new Citrix community!
  • 0

Citrix Sharefile API sf-api.com/sf/v3/Shares does not function as documented


Campbell Burgess

Question

https://api.sharefile.com/docs/resource?name=Shares doscuments the POST data as:

 

{
    "ShareType":    "Send",
    "Title":    "Sample Send Share",
    "Items":    
[
        {
            "Id":    "FILE ID"
        }
    ],
    "ExpirationDate":    "2023-12-18",
    "RequireLogin":    false,
    "RequireUserInfo":    false,
    "MaxDownloads":    -1,
    "UsesStreamIDs":    false
}

 

I get a server 400 (BAD REQUEST) .... or {"code":"BadRequest","message":{"lang":"en-US","value":"Invalid Share: provide either a type, parent, or item list"},"reason":"BadRequest"}

when I send that data.

 

What's up?

Link to comment

1 answer to this question

Recommended Posts

  • 0

Hi Campbell,

 

I just tested the request with the payload provided (replacing "FIlE ID" with an actual File ID) and it successfully returned a share ID as expected. Are you plugging in a valid File ID on this line? (Does the GUID start with "f"?)

"Id":    "FILE ID"

 

Here's a screenshot of my successful request:

image.thumb.png.674d0cf404d4117265504a86cc56adb2.png

 

 

If that doesn't help, I would suggest opening a support case and providing a screen capture of your exact request in Postman or a capture of the network traffic with HTTPS decryption using a proxy service like Fiddler. 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...