Search code examples
jsonrestputazure-api-management

Create/update Product Policy via REST in Azure API Management


The documentation seems incomplete for "Create Or Update" product policy: https://learn.microsoft.com/en-us/rest/api/apimanagement/productpolicy

Microsoft Api Management REST API documentation

As you can see, the "type" field is empty and there's nothing that indicates what should go in the body of the PUT operation. Anybody have any idea of what should go in the body? An example of usage would be much appreciated.


Solution

  • @TheDude, thanks for noticing, we will get this fixed.

    Check out this documentation (which will give you details of Headers and Sample Body)

    https://learn.microsoft.com/en-us/rest/api/apimanagement/apimanagementrest/azure-api-management-rest-api-product-entity#a-namesetpolicya-set-policy-configuration-for-a-product