Web Methods Rule API

The Rule API from Web Methods — 4 operation(s) for rule.

GitHub OpenAPI

Operations 7

GET /rule Get all rule #
POST /rule Create rule #
GET /rule/{ruleId} Get rule #
PUT /rule/{ruleId} Update rule #
DELETE /rule/{ruleId} Delete rule #
PUT /rule/{ruleId}/activate Activate rule #
PUT /rule/{ruleId}/deactivate Deactivate rule #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/web-methods:web-methods-rule-api"
All apis
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.

Get an API 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 Specification

web-methods-rule-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Web Methods Rule API
  version: '11.0'
  description: 'Operations tagged Rule across 2 of this provider''s published API definitions: apigateway-Administration.json, web-methods-api-gateway-administration-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: http://localhost:5555/rest/apigateway
tags:
- name: Rule
paths:
  /rule:
    get:
      description: The method retrieves list of all rules in API Gateway.
      operationId: getAllRule
      parameters:
      - name: ruleType
        in: query
        description: 'ruleType : if supplied, returns the rules of this particular ruleType only'
        required: false
        x-example: teamAssignmentRule
        schema:
          type: string
      - name: active
        in: query
        description: 'active : if supplied, returns the active rules only'
        required: false
        x-example: 'true'
        schema:
          type: string
      responses:
        '200':
          description: This status code indicates that the list of rules is successfully retrieved.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Rule'
              example: "{\n    \"rule\": [\n        {\n            \"id\": \"69dbb4aa-2c8e-431d-8a72-3af171c2ca44\",\n            \"ruleType\": \"teamAssignmentRule\",\n            \"name\": \"pet1rule\",\n            \"attributeContexts\": [\n                \"api\",\n                \"application\",\n                \"package\",\n                \"plan\"\n            ],\n            \"ruleLogicalOperator\": \"AND\",\n            \"ruleExpressions\": [\n                {\n                    \"attributeName\": \"name\",\n                    \"operator\": \"startsWith\",\n                    \"attributeValue\": \"pet1\"\n                }\n            ],\n            \"owner\": \"Administrator\",\n            \"active\": false,\n            \"teamsAssigned\": [\n                \"55fd3eb7-668b-4aba-b3ad-6136448e2bed\"\n            ]\n        }\n    ]\n}"
        '401':
          description: This status code indicates that either user didn't provide right credentials or user doesn't have required privileges to access this API.
      security:
      - Basic: []
      tags:
      - Rule
      summary: Get all rule
      x-summary-source: derived
    post:
      description: The method creates a conditional rule in API Gateway. The API request body must contain the payload for the rule.
      operationId: createRule
      responses:
        '201':
          description: This status code indicates that the rule has been successfully created in API Gateway, and the newly created rule is available in the response body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Rule'
              example: "{\n    \"rule\": {\n        \"id\": \"69dbb4aa-2c8e-431d-8a72-3af171c2ca44\",\n        \"ruleType\": \"teamAssignmentRule\",\n        \"name\": \"pet1rule\",\n        \"attributeContexts\": [\n            \"api\",\n            \"application\",\n            \"package\",\n            \"plan\"\n        ],\n        \"ruleLogicalOperator\": \"AND\",\n        \"ruleExpressions\": [\n            {\n                \"attributeName\": \"name\",\n                \"operator\": \"startsWith\",\n                \"attributeValue\": \"pet1\"\n            }\n        ],\n        \"owner\": \"Administrator\",\n        \"active\": false,\n        \"teamsAssigned\": [\n            \"55fd3eb7-668b-4aba-b3ad-6136448e2bed\"\n        ]\n    }\n}"
        '400':
          description: This status code indicates that the request body is not correct.
        '401':
          description: This status code indicates that either user didn't provide right credentials or user doesn't have required privileges to access this API.
      security:
      - Basic: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Rule'
        required: true
      tags:
      - Rule
      summary: Create rule
      x-summary-source: derived
    servers:
    - url: http://localhost:5555/rest/apigateway
  /rule/{ruleId}:
    get:
      description: The method retrieves the details of a rule in API Gateway.
      operationId: getRule
      parameters:
      - name: ruleId
        in: path
        description: The path parameter specifies the id of a rule that is to be retrieved.
        required: true
        x-example: 732c4526-db9a-4ef9-9782-edda1a6aa9bc
        schema:
          type: string
      responses:
        '200':
          description: This status code indicates that the details of the rule is successfully retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Rule'
              example: "{\n    \"rule\": {\n        \"id\": \"69dbb4aa-2c8e-431d-8a72-3af171c2ca44\",\n        \"ruleType\": \"teamAssignmentRule\",\n        \"name\": \"pet2rule\",\n        \"attributeContexts\": [\n            \"api\",\n            \"application\",\n            \"package\",\n            \"plan\"\n        ],\n        \"ruleLogicalOperator\": \"AND\",\n        \"ruleExpressions\": [\n            {\n                \"attributeName\": \"name\",\n                \"operator\": \"startsWith\",\n                \"attributeValue\": \"pet2\"\n            }\n        ],\n        \"owner\": \"Administrator\",\n        \"active\": false,\n        \"teamsAssigned\": [\n            \"55fd3eb7-668b-4aba-b3ad-6136448e2bed\"\n        ]\n    }\n}"
        '401':
          description: This status code indicates that either user didn't provide right credentials or user doesn't have required privileges to access this API.
        '404':
          description: This status code indicates that a rule with the given id could not be found in API Gateway.
      security:
      - Basic: []
      tags:
      - Rule
      summary: Get rule
      x-summary-source: derived
    put:
      description: The method updates the details of a specified rule in API Gateway. The API request body must contain the payload for the updated rule.
      operationId: updateRule
      parameters:
      - name: ruleId
        in: path
        description: The path parameter specifies the id of the rule that is to be updated in API Gateway.
        required: true
        x-example: 732c4526-db9a-4ef9-9782-edda1a6aa9bc
        schema:
          type: string
      responses:
        '200':
          description: This status code indicates that the rule has been successfully updated in API Gateway, and the updated rule is available in the response body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Rule'
              example: "{\n    \"rule\": {\n        \"id\": \"69dbb4aa-2c8e-431d-8a72-3af171c2ca44\",\n        \"ruleType\": \"teamAssignmentRule\",\n        \"name\": \"pet2rule\",\n        \"attributeContexts\": [\n            \"api\",\n            \"application\",\n            \"package\",\n            \"plan\"\n        ],\n        \"ruleLogicalOperator\": \"AND\",\n        \"ruleExpressions\": [\n            {\n                \"attributeName\": \"name\",\n                \"operator\": \"startsWith\",\n                \"attributeValue\": \"pet2\"\n            }\n        ],\n        \"owner\": \"Administrator\",\n        \"active\": false,\n        \"teamsAssigned\": [\n            \"55fd3eb7-668b-4aba-b3ad-6136448e2bed\"\n        ]\n    }\n}"
        '400':
          description: This status code indicates that the request body is invalid.
        '401':
          description: This status code indicates that either user didn't provide right credentials or user doesn't have required privileges to access this API.
        '404':
          description: This status code indicates that an rule with the specified id could not be found in API Gateway.
          content:
            application/json:
              example: '{}'
        '405':
          description: Method is not allowed
      security:
      - Basic: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Rule'
        description: This parameter describes the request payload of an rule that is to be updated in API Gateway.
        required: true
      tags:
      - Rule
      summary: Update rule
      x-summary-source: derived
    delete:
      description: The method deletes a rule from API Gateway.
      operationId: deleteRule
      parameters:
      - name: ruleId
        in: path
        description: The path parameter specifies the id of a rule that is to be deleted from API Gateway.
        required: true
        x-example: 732c4526-db9a-4ef9-9782-edda1a6aa9bc
        schema:
          type: string
      responses:
        '204':
          description: This status code indicates that the specified rule has been successfully deleted from API Gateway.
        '401':
          description: This status code indicates that either user didn't provide right credentials or user doesn't have required privileges to access this API.
        '404':
          description: This status code indicates that an rule with the given id could not be found in API Gateway.
        '405':
          description: This status code indicates that the specified HTTP method is not allowed for the requested rule in API Gateway.
      security:
      - Basic: []
      tags:
      - Rule
      summary: Delete rule
      x-summary-source: derived
    servers:
    - url: http://localhost:5555/rest/apigateway
  /rule/{ruleId}/activate:
    put:
      description: This REST request is used to activate a rule and this request doesn't require any request body.
      operationId: activateRule
      parameters:
      - name: ruleId
        in: path
        description: The path parameter should be the id of rule that needs to be activated.
        required: true
        x-example: 732c4526-db9a-4ef9-9782-edda1a6aa9bc
        schema:
          type: string
      responses:
        '200':
          description: This status code indicates that the rule specified is activated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Rule'
              example: "{\n    \"rule\": {\n        \"id\": \"a58ba6e4-47fd-4d24-9d11-8a72d31bd805\",\n        \"ruleType\": \"teamAssignmentRule\",\n        \"name\": \"pet2rule\",\n        \"attributeContexts\": [\n            \"api\",\n            \"application\",\n            \"package\",\n            \"plan\"\n        ],\n        \"ruleLogicalOperator\": \"AND\",\n        \"ruleExpressions\": [\n            {\n                \"attributeName\": \"name\",\n                \"operator\": \"startsWith\",\n                \"attributeValue\": \"pet2\"\n            }\n        ],\n        \"owner\": \"Administrator\",\n        \"active\": true,\n        \"teamsAssigned\": [\n            \"55fd3eb7-668b-4aba-b3ad-6136448e2bed\"\n        ]\n    }\n}"
        '400':
          description: Request body is not valid
        '401':
          description: This status code indicates that either user didn't provide right credentials or user doesn't have required privileges to access this API.
        '404':
          description: This status code indicates that the rule id specified is not found in API Gateway
        '405':
          description: Method is not allowed
      security:
      - Basic: []
      tags:
      - Rule
      summary: Activate rule
      x-summary-source: derived
    servers:
    - url: http://localhost:5555/rest/apigateway
  /rule/{ruleId}/deactivate:
    put:
      description: This REST request is used to deactivate a rule and it doesn't require any request body.
      operationId: deactivateRule
      parameters:
      - name: ruleId
        in: path
        description: The path parameter should be the id of rule that needs to be deactivated.
        required: true
        x-example: 732c4526-db9a-4ef9-9782-edda1a6aa9bc
        schema:
          type: string
      responses:
        '200':
          description: This status code indicates that the rule id specified is deactivated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Rule'
              example: "{\n    \"rule\": {\n        \"id\": \"a58ba6e4-47fd-4d24-9d11-8a72d31bd805\",\n        \"ruleType\": \"teamAssignmentRule\",\n        \"name\": \"pet2rule\",\n        \"attributeContexts\": [\n            \"api\",\n            \"application\",\n            \"package\",\n            \"plan\"\n        ],\n        \"ruleLogicalOperator\": \"AND\",\n        \"ruleExpressions\": [\n            {\n                \"attributeName\": \"name\",\n                \"operator\": \"startsWith\",\n                \"attributeValue\": \"pet2\"\n            }\n        ],\n        \"owner\": \"Administrator\",\n        \"active\": false,\n        \"teamsAssigned\": [\n            \"55fd3eb7-668b-4aba-b3ad-6136448e2bed\"\n        ]\n    }\n}"
        '400':
          description: Request body is not valid
        '401':
          description: This status code indicates that either user didn't provide right credentials or user doesn't have required privileges to access this API.
        '404':
          description: This status code indicates that the rule id specified is not found in API Gateway
        '405':
          description: Method is not allowed
      security:
      - Basic: []
      tags:
      - Rule
      summary: Deactivate rule
      x-summary-source: derived
    servers:
    - url: http://localhost:5555/rest/apigateway
components:
  schemas:
    Rule:
      type: object
      discriminator:
        propertyName: ruleType
      properties:
        active:
          type: boolean
          description: This rule is active
        attributeContexts:
          type: array
          description: Context(s) of the attribute used in rule expression
          items:
            type: string
        description:
          type: string
          description: Rule Description
        id:
          type: string
          description: A unique ID for the rule
        name:
          type: string
          description: Rule name
        owner:
          type: string
          description: Owner of this rule asset
        ruleExpressions:
          type: array
          description: Rule condition is defined using ruleExpressions
          items:
            $ref: '#/components/schemas/RuleExpression'
        ruleLogicalOperator:
          type: string
          description: Logical operator (AND / OR) that should be used to evaluate Rule expression
        ruleType:
          type: string
          description: Type of the rule
          enum:
          - teamAssignmentRule
    RuleExpression:
      type: object
      properties:
        attributeName:
          type: string
        attributeValue:
          type: string
        operator:
          type: string
  securitySchemes:
    Basic:
      type: http
      scheme: basic
      description: API Gateway Administrator and API Gateway provider
x-refined-from:
- apigateway-Administration.json
- web-methods-api-gateway-administration-openapi.yml