Is there an api to upload a file along with Version Comments?
When I upload a file through the SharePoint portal, the file upload popup also provides a text box to include version comments if needed. I am expecting the File upload REST API to have an equivalent parameter but I am not finding it. Currently what we do to upload - Do a HTTP post with the file content to the below API
_api/web/getfolderbyserverrelativeurl('{0}')/files/add(overwrite=true,url='{1}')
Is there a way to post Version comments too?