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

Conflict exception when adding hook using sharefile API

vishnu Shanmughan


When trying to add new web hook to a folder using the api it throw error "Exception of type 'WebhooksApi.Exceptions.ConflictException' was thrown."
I am using the following code as per the api documentation.

var newSubscription = SfClient.WebhookSubscriptions.Create(new WebhookSubscription
    SubscriptionContext = new SubscriptionContext {
        ResourceType = "Folder",
        ResourceId = "fo123"
    Events = new List<SubscribedResourceEvent>
        new SubscribedResourceEvent { ResourceType = "File", OperationName = "Upload" }
    WebhookUrl = WebhookUrl


Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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...