{
  "opencollection": "1.0.0",
  "info": {
    "name": "WSO2 API Manager - Admin Advanced Policy (Collection) Advanced Policy (Collection) Custom Rules (Individual) API",
    "version": "v4"
  },
  "items": [
    {
      "info": {
        "name": "Custom Rules (Individual)",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get a Custom Rule",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://apis.wso2.com/api/am/admin/v4/throttling/policies/custom/:ruleId",
            "params": [
              {
                "name": "ruleId",
                "value": "",
                "type": "path",
                "description": "Custom rule UUID\n"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://localhost:9443/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves a custom rule. We need to provide the policy Id as a path parameter.\n\n**NOTE:**\n* Only super tenant users are allowed for this operation.\n"
        },
        {
          "info": {
            "name": "Update a Custom Rule",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://apis.wso2.com/api/am/admin/v4/throttling/policies/custom/:ruleId",
            "headers": [
              {
                "name": "Content-Type",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "ruleId",
                "value": "",
                "type": "path",
                "description": "Custom rule UUID\n"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://localhost:9443/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Updates an existing custom rule.\n\n**NOTE:**\n* Only super tenant users are allowed for this operation.\n"
        },
        {
          "info": {
            "name": "Delete a Custom Rule",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://apis.wso2.com/api/am/admin/v4/throttling/policies/custom/:ruleId",
            "params": [
              {
                "name": "ruleId",
                "value": "",
                "type": "path",
                "description": "Custom rule UUID\n"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://localhost:9443/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete a custom rule. We need to provide the Id of the policy as a path parameter.\n\n**NOTE:**\n* Only super tenant users are allowed for this operation.\n"
        }
      ]
    }
  ],
  "bundled": true
}