Waiting for engine...
Skip to main content

deployedApiPolicyRuleUpdate

Updates DeployedApiPolicyRule. Accepts the following input: id name, description, methods, configuration.

All parameters except for id are optional. Only the fields present in the request will be updated. The "methods" parameter is optional, but if present, cannot be null or an empty list.

Example request to update configuration of a caching policy. Only configuration is sent in the request, and only this field will be updated:

    mutation{
deployedApiPolicyRuleUpdate(deployedApiPolicyRule: {
id: "e7301eb5-6301-4500-ad25-6adb1b9cc885",
configuration: "{\"cacheName\": \"myCache\", \"key\": \"{#request.params['zipcode']}\", \"timeToLiveSeconds\": 3600, \"useResponseCacheHeaders\": false,\"scope\": \"API\"}"
}){
id,
name,
description,
methods,
type,
configuration
}
}

deployedApiPolicyRuleUpdate(
deployedApiPolicyRule: DeployedApiPolicyRuleInput!
): DeployedApiPolicyRule!

Arguments

deployedApiPolicyRuleUpdate.deployedApiPolicyRule ● DeployedApiPolicyRuleInput! non-null input platform

Type

DeployedApiPolicyRule object platform

Defines a policy rule for API requests with method restrictions and configuration.

On this Page