How to create Developer App using Management API in a paid service level account?

Not applicable

I am trying to use this Apigee provided API to create a dev app: Create Developer App

which uses this command:

https://api.enterprise.apigee.com/v1/organizations/{org_name}/developers/{developer_email_or_id}/app...

How will I create a dev app if I am not using the enterprise Apigee but rather a paid Service Level account with different host url

0 3 685
3 REPLIES 3

@Junnes Ashley Pineda , You mean OnPremises installation ?

No, it is a cloud instance Apigee but not enterprise.

The API endpoint for management APIs for Apigee Edge SaaS, is the same for all cloud instances of Apigee Edge.

Let's suppose this is the data for your scenario.

data item value
Edge organization junnes
email of existing developer ashley@pineda.org
name of to-be-created app NewApp1
name of API Product for the app Product1
lifetime of credential 10 days

In that case, to create a developer app, you would invoke a call like this:

curl -i -n -H 'Content-type: application/json' \
 -X POST \
 'https://api.enterprise.apigee.com/v1/o/junnes/developers/ashley@pineda.org/apps'\
 -d '{
  "attributes": [ { "name" : "date added", "value": "Wednesday, 29 March 2017"} ],
  "apiProducts": [ "Product1" ],
  "callbackUrl" : "",
  "keyExpiresIn" : "864000000",
  "scopes" : [ ],
  "name" : "NewApp1"
}'

The keyExpiresIn is 864000000, which equates to 60 * 60 * 24 * 10 * 1000 . This is a value in milliseconds, corresponding to 10 days.

This API call assumes the developer exists, and the API Product exists.