Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Update an API policy using management API's

Hi,

we can create a new policy using following endpoint :

https://api.enterprise.apigee.com/v1/organizations/org/apis/yourapi/revisions/1/policies

Is there a way we can update the created policy via management API?

Solved Solved
1 4 398
1 ACCEPTED SOLUTION

With little bit of experimentation, I was able to update the policy using below CURL command:

curl -X POST \ https://api.enterprise.apigee.com/v1/organizations/yourorg/apis/apiname/revisions/1/policies/policyn... -H 'Accept: application/json' \ -H 'Authorization: Basic yourauth' \ -H 'Content-Type: application/xml' \ -H 'Postman-Token: 078b4524-4311-44cf-9e8f-9cc98142978b' \ -H 'cache-control: no-cache' \ -d 'your assign message policy'

Unfortunately, Apigee has not document these API's any where.

View solution in original post

4 REPLIES 4