how to incorporate individual policies for different operations inside a single API in an APIM

I have a task to set individual policies for different operations in an API in API Management Instance. Currently, we are manually adding policies for different operations from the Azure Portal. But my task is to set individual policies for different operations using Bicep.
I searched for a solution and found a document on Stack overflow, but It is not answering my question:
I could not find any solution in the official mslearn documentation.
Kindly propose a solution and confirm whether I have to keep multiple allOperationsPolicy.xml files in my repo to achieve this.
Also, initiate a private conversation where I can share existing bicep for more clarity.