Use the fpolicy-operations-list-set ONTAPI call to configure a file policy to monitor file write operations.
In the monitored-operations input name field, the monitored-operation-info[] should contain the write operation. The monitored-protocols should contain the specific protocols that you want to monitor. In the case of a file write operation, both CIFS and NFS requests can be monitored.