How to comment a file or add comment using API?

I am using Pyocclient for nextcloud integration, but that doesn’t support commenting a file.I had checked the API doc, and Tried like that but it didn’t work.So how do we comment using an API?

1 Like