update developer app vs. generate a new developer-app keypair

Hello,

what is the difference between the Mgmt API call to update a developer app vs. the Mgmt API call to generate a new key-pair & add it to the developer app?

The SmartDocs URLs show the same URL & the same Payload:

  1. New KeyPair: http://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/developers/%7Bdeveloper_ema...
  2. Update Developer-App http://docs.apigee.com/management/apis/put/organizations/%7Borg_name%7D/developers/%7Bdeveloper_emai...

I am using PUT (update), and a new key pair is generated at each call... so the update & generate-new-keypair calls seem to be mixed.

Do I miss something?

Solved Solved
0 3 163
2 ACCEPTED SOLUTIONS

@Francois-Xavier KOWALSKI, api products need to be added at key level instead of app level. if you pass api products as part of update app call, it generates new pair of keys each time.

Use "Add API Product to Key" to add api products to the developer app keys:

http://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/developers/%7Bdeveloper_ema...

View solution in original post

@Francois-Xavier KOWALSKI, yes it is. Same case with the attributes added as part of keys "Add API Product to Key" which will not appear in Edge UI & developer portal.

@docs team, pls update the request payloads for both the "Add API Product to Key" & "Update Developer App" management APIs.

View solution in original post

3 REPLIES 3

@Francois-Xavier KOWALSKI, api products need to be added at key level instead of app level. if you pass api products as part of update app call, it generates new pair of keys each time.

Use "Add API Product to Key" to add api products to the developer app keys:

http://docs.apigee.com/management/apis/post/organizations/%7Borg_name%7D/developers/%7Bdeveloper_ema...

Thanks for your reply & tip. It then seems that app-update operation documentation needs to be updated http://docs.apigee.com/management/apis/put/organizations/%7Borg_name%7D/developers/%7Bdeveloper_emai... because its example payload does include "apiProducts" : ["product1", "product2"],

{
 "attributes" : [ 
  {
   "name" : "attribute_name1",
   "value" : "value1"
  }, 
  {
   "name" : "attribute_name2",
   "value" : "value2"
  } 
 ],
 "name" : "App_name",
 "callbackUrl" : "url",
 "apiProducts" : ["product1", "product2"],
 "keyExpiresIn" : "milliseconds"
}

@Francois-Xavier KOWALSKI, yes it is. Same case with the attributes added as part of keys "Add API Product to Key" which will not appear in Edge UI & developer portal.

@docs team, pls update the request payloads for both the "Add API Product to Key" & "Update Developer App" management APIs.