Hi @artivo
You cannot use getByTitle and then pass in the folder hierarchy. Please follow the below steps and it was tested from my end and its working.
- Use the below API method to find the file and its item id.
_api/web/GetFolderByServerRelativeUrl('Sample Documents/Folder 1/Folder 11/Folder 111/')/Files('Most Viewed Policies.csv')/ListItemAllFields
- Again use the HTTP action with the following query to update the item
_api/web/lists/getbytitle('Sample Documents')/items(@{outputs('Send_an_HTTP_request_to_SharePoint')?['body']?['d']?['Id']})/validateUpdateListItem
You have to pass the item id from the first HTTP action and then follow the same as described in the link. It should work. Please try it out and let me know.