Web Methods Policy Actions API
The PolicyActions API from Web Methods — 2 operation(s) for policyactions.
The PolicyActions API from Web Methods — 2 operation(s) for policyactions.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/web-methods:web-methods-policyactions-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Web Methods Policy Actions API
version: '11.0'
description: 'Operations tagged PolicyActions across 2 of this provider''s published API definitions: apigateway-PolicyManagement.json, web-methods-api-gateway-policymanagement-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:5555/rest/apigateway
tags:
- name: PolicyActions
paths:
/policyActions:
get:
description: This request will return all the policy actions from API Gateway
operationId: getAllPolicyActions
parameters:
- name: policyActionIds
in: query
description: This is a query parameter. Provide comma separated Policy Action ids to get the policy action details for specified policy action ids
required: false
x-example: 685e99ee-0e1b-4afa-8ff3-4322cf296566,78c0f92e-c85d-44c2-b7d5-e7a11fda8a57
schema:
type: string
responses:
'200':
description: The list of policy actions will be available in the response body. The list can be all or specific set of policy action ids specified in query string. If any of the policy action id specified in query parameter is not available then it will omit that id and fetch result for other valid ids
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PolicyAction'
example: "{\n \"policyAction\": [\n {\n \"id\": \"50c705f0-28d9-4a1a-a20b-6c84a0f4a837\",\n \"names\": [\n {\n \"value\": \"Straight Through Routing\",\n \"locale\": \"en\"\n }\n ],\n \"descriptions\": [\n {\n \"value\": \"\",\n \"locale\": \"English\"\n }\n ],\n \"templateKey\": \"straightThroughRouting\",\n \"parameters\": [\n {\n \"templateKey\": \"endpointUri\",\n \"values\": [\n \"http://localhost:8080/employee_service/${sys:resource_path}\"\n ]\n }\n ],\n \"active\": false\n },\n {\n \"id\": \"09219ca1-9bd7-4d62-8baf-167d29e3390e\",\n \"names\": [\n {\n \"value\": \"Require HTTP / HTTPS\",\n \"locale\": \"en\"\n }\n ],\n \"descriptions\": [\n {\n \"value\": \"\",\n \"locale\": \"English\"\n }\n ],\n \"templateKey\": \"entryProtocolPolicy\",\n \"parameters\": [\n {\n \"templateKey\": \"protocol\",\n \"values\": [\n \"http\"\n ]\n }\n ],\n \"active\": false\n }\n ]\n}"
'401':
description: This status code indicates shows either user didn't provide any user credential or user doesn't have API Gateway Administrator or API Gateway provider access to get the policy actions.
security:
- Basic: []
tags:
- PolicyActions
summary: Get all policy actions
x-summary-source: derived
post:
description: 'This REST request is used to create policy action. The result of this request is a policy action payload and is available in the response. To know about the policy action template and to create it you can use the policyActionTemplates/{templateKey} to get the template structure of a policy action. The template key will be available in policyStage resource.
It''s also used to create the custom destination using the templateKey ''customDestination''. For more information on custom destination, please refer the postman collections here - https://github.com/SoftwareAG/webmethods-api-gateway/blob/master/apigatewayservices/postmancollections/apis/custom-destination/CustomDestination.json'
operationId: createPolicyAction
responses:
'201':
description: This status code indicates that the policy action is created successfully and the created policy action can be seen in the response body
content:
application/json:
schema:
$ref: '#/components/schemas/PolicyAction'
example: "{\n \"policyAction\": {\n \"id\": \"685e99ee-0e1b-4afa-8ff3-4322cf296566\",\n \"names\": [\n {\n \"value\": \"Require HTTP / HTTPS\",\n \"locale\": \"en\"\n }\n ],\n \"templateKey\": \"entryProtocolPolicy\",\n \"parameters\": [\n {\n \"templateKey\": \"protocol\",\n \"values\": [\n \"http\"\n ]\n },\n {\n \"templateKey\": \"soapVersion\",\n \"values\": [\n \"soap\"\n ]\n }\n ],\n \"active\": false\n }\n}"
'400':
description: This status code indicates that the request payload is not correct and corresponding error details can be seen in the response body
content:
application/json:
example: "{\n \"errorDetails\": \" Unable to create the resource. Error in processing the payload null. Error Message . Check the correctness of key and payload.\"\n}"
'401':
description: This status code indicates that the user did not provide any user credential or user does not have API Gateway Administrator or API Gateway provider access to create policy actions.
security:
- Basic: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PolicyAction'
description: Contains the policy action details of the newly created policy action
required: true
tags:
- PolicyActions
summary: Create policy action
x-summary-source: derived
servers:
- url: http://localhost:5555/rest/apigateway
/policyActions/{policyActionId}:
get:
description: This request will return policy action details of the policy action based on the id specified in path
operationId: getPolicyAction
parameters:
- name: policyActionId
in: path
description: This path parameter is used to specify the policy action id which policy action details needs to retrieved.
required: true
x-example: 685e99ee-0e1b-4afa-8ff3-4322cf296566
schema:
type: string
responses:
'200':
description: The details of policy action will be available in response body
content:
application/json:
schema:
$ref: '#/components/schemas/PolicyActionWrapper'
example: "{\n \"policyAction\": {\n \"id\": \"685e99ee-0e1b-4afa-8ff3-4322cf296566\",\n \"names\": [\n {\n \"value\": \"Require HTTP / HTTPS\",\n \"locale\": \"en\"\n }\n ],\n \"templateKey\": \"entryProtocolPolicy\",\n \"parameters\": [\n {\n \"templateKey\": \"protocol\",\n \"values\": [\n \"http\"\n ]\n },\n {\n \"templateKey\": \"soapVersion\",\n \"values\": [\n \"soap\"\n ]\n }\n ],\n \"active\": false\n }\n}"
'401':
description: This status code indicates that the user did not provide any user credential or user does not have API Gateway Administrator or API Gateway provider access to get the details of a policy action.
'404':
description: This status code indicates that the policy action specified does not exists
content:
application/json:
example: "{\n \"errorDetails\": \" Unable to find the resource: 685e99ee-0e1b-4afa-8ff3-4322cf2965661\"\n}"
security:
- Basic: []
tags:
- PolicyActions
summary: Get policy action
x-summary-source: derived
put:
description: This put request is used to update policy action based on the policy action id which is specified in path
operationId: updatePolicyAction
parameters:
- name: policyActionId
in: path
description: This path parameter is used to specify the policy action id which needs to be updated.
required: true
x-example: 685e99ee-0e1b-4afa-8ff3-4322cf296566
schema:
type: string
responses:
'200':
description: This status code indicates that API Gateway has successfully updated the specified policy action and the updated policy action details can be found in the response body
content:
application/json:
schema:
$ref: '#/components/schemas/PolicyActionWrapper'
example: "{\n \"policyAction\": {\n \"id\": \"685e99ee-0e1b-4afa-8ff3-4322cf296566\",\n \"names\": [\n {\n \"value\": \"Require HTTP / HTTPS\",\n \"locale\": \"en\"\n }\n ],\n \"templateKey\": \"entryProtocolPolicy\",\n \"parameters\": [\n {\n \"templateKey\": \"protocol\",\n \"values\": [\n \"http\"\n ]\n },\n {\n \"templateKey\": \"soapVersion\",\n \"values\": [\n \"soap\"\n ]\n }\n ],\n \"active\": false\n }\n}"
'400':
description: Tis status code indicates the request payload is not correct and corresponding error details can be seen in the response body
content:
application/json:
example: "{\n \"errorDetails\": \" Unable to process the PUT request for APIs. An error occurred while processing the payload. Error message:\\n Unable to create the resource. Error in processing the payload null. Error Message . Check the correctness of key and payload.\"\n}"
'401':
description: This status code indicates that the user did not provide any user credential or user does not have API Gateway Administrator or API Gateway provider access to update the policy action.
'500':
description: This status code indicates the processing error occurred during the update of policy action and the corresponding details can be seen in the response body
content:
application/json:
example: "{\n \"errorDetails\": \" Unable to process the PUT request for APIs. An error occurred while processing the payload. Error message:\\n Unable to find the resource: 685e99ee-0e1b-4afa-8ff3-4322cf2965661\"\n}"
security:
- Basic: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PolicyActionWrapper'
description: Contains the policy action details which needs to be updated.
required: true
tags:
- PolicyActions
summary: Update policy action
x-summary-source: derived
delete:
description: This delete request will delete the policy action based on the policy action id which is specified in path
operationId: deletePolicyAction
parameters:
- name: policyActionId
in: path
description: Policy Action ID
required: true
x-example: 685e99ee-0e1b-4afa-8ff3-4322cf296566
schema:
type: string
responses:
'204':
description: This status code indicates that the specified policy action successfully deleted
'401':
description: This status code indicates that the user did not provide any user credential or user does not have API Gateway Administrator or API Gateway provider access to delete the policy action.
'404':
description: This status code indicates that the corresponding policy action id does not exist
content:
application/json:
example: "{\n \"errorDetails\": \" Unable to find the resource: 685e99ee-0e1b-4afa-8ff3-4322cf2965661\"\n}"
security:
- Basic: []
tags:
- PolicyActions
summary: Delete policy action
x-summary-source: derived
servers:
- url: http://localhost:5555/rest/apigateway
components:
schemas:
PolicyActionWrapper:
type: object
properties:
policyAction:
$ref: '#/components/schemas/PolicyAction'
InternationalizedString:
type: object
properties:
locale:
type: string
description: This property will have the localization information of the property 'value'.
value:
type: string
description: This property will hold the actual string
description: This model is used to store a string with its corresponding locale
ExtendedProperties:
type: object
properties:
key:
type: string
value:
type: string
PolicyAction:
type: object
properties:
active:
type: boolean
descriptions:
type: array
description: List of policy action description with corresponding locale information
items:
$ref: '#/components/schemas/InternationalizedString'
id:
type: string
description: Policy Action ID
names:
type: array
description: List of policy action names with corresponding locale information
items:
$ref: '#/components/schemas/InternationalizedString'
parameters:
type: array
description: This is the list of values that are configured for this policy actions
items:
$ref: '#/components/schemas/PolicyActionParameter'
stageKey:
type: string
templateKey:
type: string
description: Template key of the policy actions
description: This model contains details about a policy action in API Gateway
PolicyActionParameter:
type: object
required:
- templateKey
properties:
extendedProperties:
type: array
items:
$ref: '#/components/schemas/ExtendedProperties'
parameters:
type: array
description: If this policy action parameter is complex type then array of policy action parameter will be the value for this parameter template key
items:
$ref: '#/components/schemas/PolicyActionParameter'
templateKey:
type: string
description: parameter template key.
type:
type: string
values:
type: array
description: array of values for this parameter template key
items:
type: string
description: This model represent the values needed for a policy action to execute. This can be either primitive type or complex structure that in turn refer to another PolicyActionParameter
securitySchemes:
Basic:
type: http
scheme: basic
description: API Gateway Administrator and API Gateway provider
x-refined-from:
- apigateway-PolicyManagement.json
- web-methods-api-gateway-policymanagement-openapi.yml