Custom Consumer Key

Is there a way to set custom consumer key in Apigee Edge? I don't see a way in Management UI to change the consumer key. Can this be done using Management APIs?

0 3 267
3 REPLIES 3

Please check duplicate question here.

@Anil Sagar I am getting "access denied" message clicking that link.

weird, still no access, anyways i can copy the contents here --

Step1: add your customer key to the app

curl -v -u admin@apigee.com -khttps://api.enterprise.apigee.com/v1/organizations/{Org}/developers/{Developer}/apps/{App}/keys/crea...-H "Content-type: application/xml" -d @text.xml

Where the contents of text.xml would be :

<CredentialRequest><Attributes/><ConsumerKey>key</ConsumerKey><ConsumerSecret>secret</ConsumerSecret><ApiProducts><ApiProduct>product</ApiProduct></ApiProducts><Scopes/></CredentialRequest>

Step 2:

make another call to add the API key to Product:

curl -v -u admin@apigee.com -k https://api.enterprise.apigee.com/v1/organizations/{org_name}/developers/{developer_email}/apps/{app... -H "Content-Type: application/json" -d '{"apiProducts": ["MyAPIProduct"], "attributes" : []}'