How can we set the New Product Key Approval default value to manual in apigee edge?

The default value for the Key Approval field in a new product is Automatic is it possible to change this to Manual? We are on private instance of Edge: Version 4.19.01.00

0 3 245
3 REPLIES 3

ahmed
New Member

that simple as

go to publish-->API Products-->Select Product you want to change-->Product Details and un-tick box which says Automatically approve access requests

Thanks for the reply, but that is not what we we are trying to achieve. We want to set the default value selected upon product creation to be manual instead of automatic. Whe publish-->products--> +Product

the new product page has automatic selected by default, we wanted to change this default to manual or do away with the auto option all together.

ahmed
New Member
your only option then would be Management API, we have implemented the same use case where a product is created but not approved see POST json payload element called approvalType. 

you can find more information on https://apidocs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/apiproducts

{
  "name" : "{name}",
  "displayName": "{display_name}",
  "approvalType": {"manual" or "auto"},
  "attributes": [
    {
      "name": "access",
      "value": "{public, private, or internal}"
    },
    {
      "name": "{attribute_name2}",
      "value": "{value2}"
    }
  ],
  "description": "{description}",
  "apiResources": [ "{/resource1}", "{/resource2}", ...],
  "environments": [ "{test}", "{prod}", ...],
  "proxies": ["{proxy1}", "{proxy2}", ...],
  "quota": "{quota}",
  "quotaInterval": "{quota_interval}",
  "quotaTimeUnit": "{quota_unit}",
  "scopes": ["{scope1}", "{scope2}", ...]
}