You are viewing the Apigee Management API reference documentation. For the main product docs, and to search all docs, go to https://docs.apigee.com. For cross-site search, click Search all in the search results.

Create a policy for an API proxy revision

Resource Summary

Security

Content Type

application/xml

Category

Policy,

Createapolicy

POST

Create a policy for an API proxy revision

Creates a policy for a specific API proxy revision. Use this as an alternative to creating a policy in the management UI. Edge validates the policy, and you'll receive an error if the policy is invalid. For information on creating policies, see the documentation for individual policies in the Policy reference overview.

 

To use the new policy in the API proxy revision, you must attach it to the desired place in the proxy flow. 

Resource URL

https://api.enterprise.apigee.com/v1 /organizations/{org_name}/apis/{api_name}/revisions/{revision}/policies

Header Parameters

Name Values Description
Content-Type
(required)

application/xml

Accept
(required)

application/xml or application/json. Policy definitions are in XML, but you can alternatively view the response in JSON.

Request Body

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Working...

Help or comments?

  • If something's not working: Ask the Apigee Community or see Apigee Support.
  • If something's wrong with the docs: Click the "Send Feedback" button.
    (Incorrect? Unclear? Broken link? Typo?)