Calling a web hook when files are created

Bonjour,

Is there a way to call a web hook when a file is created? It would work in the same way as mail notificatoins, only calling a URL provided by the user instead of sending a mail. Something similar to the GitLab webhooks.

Cheers

There is no implementation for that but it could be easily done in an app. You can use the postCreate hook to send a request to an URL after a file has been created, see https://docs.nextcloud.com/server/13/developer_manual/app/hooks.html#filesystem-root

1 Like

@juliushaertl Is it possible to build it the other way around? I would like a service to contact Nextcloud (more specifically the app) if something happens outside.