API Manager API

(4 reviews)

Promoting an API

To promote an API from one environment to another, you must have access to both a source and target environment. The URI property contains the target environment. The source environment is specified by originApiId as shown in the following example.

curl -X POST \
  https://anypoint.mulesoft.com/apimanager/api/v1/organizations/:organizationId/environments/:environmentId/apis \
  -H 'authorization: Bearer OMITTED' \
  -H 'content-type: application/json' \
  -d '{
   "instanceLabel":"Flights API (Promoted)",
   "promote":{
      "originApiId":<:apiId>,
      "policies":{
         "allEntities":true
      },
      "tiers":{
         "allEntities":true
      },
      "alerts":{
         "allEntities":true
      }
   }
}'

If you do not want to promote policies, tiers or alerts, change the corresponding allEntities property to false.


Reviews