Ana içeriğe geç

API Call Policy

General Information​

Policy Type​

policy-api-call

Endpoints​

List Policies​

GET /apiops/projects/{projectName}/apiProxies/{apiProxyName}/policies/

Add Policy​

POST /apiops/projects/{projectName}/apiProxies/{apiProxyName}/policies/{policyName}/

Update Policy​

PUT /apiops/projects/{projectName}/apiProxies/{apiProxyName}/policies/{policyName}/

Delete Policy​

DELETE /apiops/projects/{projectName}/apiProxies/{apiProxyName}/policies/{policyName}/

List Policies​

Endpoint​

GET /apiops/projects/{projectName}/apiProxies/{apiProxyName}/policies/

Request​

Headers​

HeaderValue
AuthorizationBearer {token}

Path Parameters​

ParameterTypeRequiredDescription
projectNamestringYesProject name
apiProxyNamestringYesAPI Proxy name

Response​

Success Response (200 OK)​

{
"status": "SUCCESS",
"resultList": [
{
"apiProxy": {
"name": "MyAPI",
"requestPolicyList": [
{
"type": "policy-api-call",
"name": "external-api-call",
"description": "Call external API for validation",
"active": true,
"callType": "SYNCHRONOUS",
"httpMethod": "POST",
"url": "https://api.example.com/validate",
"timeout": 5000,
"certificateEnabled": false,
"enableCache": false
}
],
"responsePolicyList": [],
"errorPolicyList": []
}
}
],
"resultCount": 1
}

cURL Example​

curl -X GET \
"https://demo.apinizer.com/apiops/projects/MyProject/apiProxies/MyAPI/policies/" \
-H "Authorization: Bearer YOUR_TOKEN"

Add Policy​

Endpoint​

POST /apiops/projects/{projectName}/apiProxies/{apiProxyName}/policies/{policyName}/

Request​

Headers​

HeaderValue
AuthorizationBearer {token}
Content-Typeapplication/json

Path Parameters​

ParameterTypeRequiredDescription
projectNamestringYesProject name
apiProxyNamestringYesAPI Proxy name
policyNamestringYesPolicy name

Request Body​

Full JSON Body Example - Synchronous Call with Cache​
{
"operationMetadata": {
"targetScope": "ALL",
"targetPipeline": "REQUEST",
"deploy": true,
"deployTargetEnvironmentNameList": ["production"],
"order": 1
},
"policy": {
"type": "policy-api-call",
"description": "Call external validation API with caching",
"active": true,
"callType": "SYNCHRONOUS",
"httpMethod": "POST",
"url": "https://api.example.com/validate",
"timeout": 5000,
"certificateEnabled": false,
"clearBodyBeforeCall": false,
"useMessageTemplateBeforeCall": true,
"enumTestConsoleRequestBodyType": "JSON",
"bodyContentBeforeCall": "{\n \"userId\": \"${userId}\",\n \"action\": \"validate\"\n}",
"urlEncodedList": [],
"dataManipulationListBeforeCall": [],
"removeAllHeadersBeforeCall": true,
"headersToBeDeletedBeforeCallList": [],
"headersToBeAddedBeforeCallList": [
{
"name": "Content-Type",
"valueSource": "VALUE",
"value": "application/json",
"prefix": null
},
{
"name": "Authorization",
"valueSource": "VARIABLE",
"variable": {
"type": "HEADER",
"headerName": "Authorization"
},
"prefix": "BEARER"
}
],
"removeAllParametersBeforeCall": true,
"parametersToBeDeletedBeforeCallList": [],
"parametersToBeAddedBeforeCallList": [
{
"name": "apiKey",
"valueSource": "VALUE",
"value": "your-api-key"
}
],
"enableCache": true,
"cacheBy": {
"type": "HEADER",
"headerName": "Authorization"
},
"capacity": 1000,
"ttl": 3600,
"cacheNullResponses": false,
"cacheStorageType": "DISTRIBUTED",
"cacheConnectionTimeoutInSeconds": 3,
"cacheErrorAction": "CONTINUE",
"retrySettings": {
"enabled": true,
"retryCount": 2,
"retryDelayType": "EXPONENTIAL",
"retryInitialDelayMs": 500,
"retryMaxDelayMs": 10000,
"retryBackoffMultiplier": 2.0,
"retryOnStatusCodeList": [502, 503, 504],
"retryNonIdempotent": false
},
"enableDynamicTtl": true,
"dynamicTtlVariable": {
"type": "BODY",
"messageContentType": "JSON",
"jsonPathValue": "$.expireAt"
},
"dynamicTtlSourceType": "ISO_8601_DATETIME",
"dynamicTtlCustomDatePattern": null,
"dynamicTtlIsJwt": false,
"dynamicTtlJwtClaimName": null,
"dynamicTtlOffsetSeconds": 30,
"fallbackTtl": 300,
"enableResponseAssertion": true,
"responseAssertionVariable": {
"type": "BODY",
"messageContentType": "JSON",
"jsonPathValue": "$.ReturnCode"
},
"responseAssertionOperator": "EQUALS",
"responseAssertionExpectedValue": "0",
"afterCallBodyOperationType": "REPLACE_BODY",
"useMessageTemplateAfterCall": false,
"messageTemplateContentTypeAfterCall": "JSON",
"bodyContentAfterCall": null,
"dataManipulationListAfterCall": [],
"removeAllHeadersAfterCall": false,
"headersToBeDeletedAfterCallList": [],
"headersToBeAddedAfterCallList": [],
"removeAllParametersAfterCall": false,
"parametersToBeDeletedAfterCallList": [],
"parametersToBeAddedAfterCallList": [],
"prepareMessage": false,
"modifyMessage": false,
"newBodyContentSourceType": null
}
}

Request Body Fields​

operationMetadata​
FieldTypeRequiredDefaultDescription
targetScopestringYes-Policy scope: ALL or ENDPOINT
targetEndpointstringNo*-Endpoint path (required if targetScope=ENDPOINT)
targetEndpointHTTPMethodstringNo*-HTTP method (required if targetScope=ENDPOINT)
targetPipelinestringYes-Pipeline: REQUEST, RESPONSE, or ERROR
deploybooleanNotrueWhether to deploy after adding policy
deployTargetEnvironmentNameListarrayNo[]List of environment names to deploy to
orderintegerNonullPolicy execution order (starts from 1)

Enum: targetScope

  • ALL - Policy applies to all endpoints
  • ENDPOINT - Policy applies only to specified endpoint

Enum: targetPipeline

  • REQUEST - Executes in request pipeline
  • RESPONSE - Executes in response pipeline
  • ERROR - Executes in error pipeline

Enum: targetEndpointHTTPMethod

  • GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD
policy​
FieldTypeRequiredDefaultDescription
typestringYes-Policy type: policy-api-call
descriptionstringNo-Policy description
activebooleanNotrueWhether policy is active
callTypestringYes-Call type: SYNCHRONOUS or ONE_WAY
httpMethodstringYes-HTTP method for API call
urlstringYes-Target API URL
timeoutintegerNo-Request timeout in milliseconds
certificateNamestringNo-Certificate name for mTLS (required if certificateEnabled=true)
certificateEnabledbooleanNofalseEnable mTLS certificate
clearBodyBeforeCallbooleanNofalseClear request body before API call
useMessageTemplateBeforeCallbooleanNotrueUse message template for request body
enumTestConsoleRequestBodyTypestringNoXMLRequest body content type
bodyContentBeforeCallstringNo-Request body template
urlEncodedListarrayNo[]URL encoded form parameters
dataManipulationListBeforeCallarrayNo[]Data manipulation for request
removeAllHeadersBeforeCallbooleanNotrueRemove all headers before call
headersToBeDeletedBeforeCallListarrayNo[]Headers to delete before call
headersToBeAddedBeforeCallListarrayNo[]Headers to add before call
removeAllParametersBeforeCallbooleanNotrueRemove all parameters before call
parametersToBeDeletedBeforeCallListarrayNo[]Parameters to delete before call
parametersToBeAddedBeforeCallListarrayNo[]Parameters to add before call
enableCachebooleanNofalseEnable response caching
cacheByobjectNo-Variable for cache key
capacityintegerNo*-Cache capacity (required if enableCache=true)
ttlintegerNo*-Cache TTL in seconds (required if enableCache=true)
cacheNullResponsesbooleanNotrueCache null/error responses
cacheStorageTypestringNoDISTRIBUTEDCache storage type
cacheConnectionTimeoutInSecondsintegerNo3Distributed cache connection timeout in seconds
cacheErrorActionstringNoCONTINUEWhat to do when the cache service is unreachable (CONTINUE or STOP)
retrySettingsobjectNo-Retry settings for the outbound call (see RetrySettings Object)
enableCompressionbooleanNofalseAdvertise Accept-Encoding to the target service and automatically decompress its response
enableDynamicTtlbooleanNofalseEnable dynamic TTL calculation from API response
dynamicTtlVariableobjectNo*-Variable from which the TTL value will be read (required if enableDynamicTtl=true)
dynamicTtlSourceTypestringNo*-Format of the dynamic TTL value (required if enableDynamicTtl=true)
dynamicTtlCustomDatePatternstringNo*-Custom date-time pattern (required if dynamicTtlSourceType=CUSTOM_DATETIME)
dynamicTtlIsJwtbooleanNofalseWhether the source variable value is inside a JWT token
dynamicTtlJwtClaimNamestringNo*-JWT claim name to read after decoding (required if dynamicTtlIsJwt=true)
dynamicTtlOffsetSecondsintegerNo0Safety margin in seconds subtracted from the calculated TTL
fallbackTtlintegerNo-Fallback TTL in seconds when dynamic TTL cannot be calculated
enableResponseAssertionbooleanNofalseEnable business-level success assertion on the response. When the assertion fails the response is NOT cached and the flow continues
responseAssertionVariableobjectNo*-Variable to assert on (required if enableResponseAssertion=true)
responseAssertionOperatorstringNoEQUALSComparison operator
responseAssertionExpectedValuestringNo*-Expected value (required unless operator is EXISTS/NOT_EXISTS). Supports environment variables (${variable}) and context variables (#{variable}), resolved on every request
afterCallBodyOperationTypestringNo-Operation on original body after call
useMessageTemplateAfterCallbooleanNotrueUse message template after call
messageTemplateContentTypeAfterCallstringNoXMLResponse body content type
bodyContentAfterCallstringNo-Response body template
dataManipulationListAfterCallarrayNo[]Data manipulation for response
removeAllHeadersAfterCallbooleanNofalseRemove all headers after call
headersToBeDeletedAfterCallListarrayNo[]Headers to delete after call
headersToBeAddedAfterCallListarrayNo[]Headers to add after call
removeAllParametersAfterCallbooleanNofalseRemove all parameters after call
parametersToBeDeletedAfterCallListarrayNo[]Parameters to delete after call
parametersToBeAddedAfterCallListarrayNo[]Parameters to add after call
prepareMessagebooleanNofalsePrepare message flag
modifyMessagebooleanNofalseModify message flag
newBodyContentSourceTypestringNo-Source type for new body content

EnumPolicyRestApiCallType​

  • SYNCHRONOUS - Two-way call, waits for response (supports caching)
  • ONE_WAY - Fire-and-forget call, no response expected (no caching)

EnumHttpRequestMethod​

  • GET - GET request
  • POST - POST request
  • PUT - PUT request
  • DELETE - DELETE request
  • PATCH - PATCH request
  • OPTIONS - OPTIONS request
  • HEAD - HEAD request

EnumMessageTemplateContentType​

  • XML - XML content
  • JSON - JSON content
  • RAW - Raw text content
  • URL_ENCODED - application/x-www-form-urlencoded

RetrySettings Object​

Retries the outbound call when it fails with a transient error. Disabled by default; existing configurations are unaffected.

FieldTypeRequiredDefaultDescription
enabledbooleanNofalseEnable retry
retryCountintegerNo0Additional attempts after the first one (total requests = retryCount + 1)
retryDelayTypestringNoNO_DELAYDelay strategy: NO_DELAY, FIXED or EXPONENTIAL
retryFixedDelayMsintegerNo500Fixed wait before each retry (used when retryDelayType=FIXED)
retryInitialDelayMsintegerNo500Wait before the first retry (used when retryDelayType=EXPONENTIAL)
retryMaxDelayMsintegerNo10000Upper bound for the growing wait
retryBackoffMultipliernumberNo2.0Growth factor per step, must be greater than 1
retryOnStatusCodeListarrayNo[502, 503, 504]HTTP status codes that trigger a retry
retryNonIdempotentbooleanNofalseAllow retry for POST/PATCH on server responses

Which failures are retried:

  • Connection-phase failures (connection refused, connect timeout, DNS or TLS failure) are always retried — the request was never sent.
  • Failures after the request was sent (read timeout, connection reset) and error status codes are retried only for idempotent methods (GET, HEAD, OPTIONS, PUT, DELETE), unless retryNonIdempotent is true.
  • The cache is looked up once, before the attempts; only a successful response is cached. If every attempt fails, nothing is written to the cache.

EnumCacheStorageType​

  • LOCAL - Local cache (per node)
  • DISTRIBUTED - Distributed cache (shared across nodes)

EnumOriginalMessageOperationType​

  • NOT_CHANGE_BODY - Keep original body unchanged
  • REPLACE_BODY - Replace original body with API call response
  • CLEAR_BODY - Clear original body after call

EnumMessageTemplateContentType (After Call)​

  • XML - XML content
  • JSON - JSON content
  • RAW - Raw text content

EnumBodyContentSourceType​

  • VALUE - Use static value
  • VARIABLE - Use variable value

EnumDynamicTtlSourceType​

  • ISO_8601_DATETIME - Standard ISO 8601 date format (e.g., 2026-03-26T15:30:00Z, 2026-03-26T15:30:00+03:00)
  • CUSTOM_DATETIME - Custom format using Java DateTimeFormatter pattern (requires dynamicTtlCustomDatePattern)
  • EPOCH_SECONDS - Unix epoch timestamp in seconds (e.g., 1743004200)
  • EPOCH_MILLISECONDS - Unix epoch timestamp in milliseconds (e.g., 1743004200000)
  • EXPIRES_IN_SECONDS - Relative duration in seconds (e.g., 300 for 5 minutes)
  • EXPIRES_IN_MILLISECONDS - Relative duration in milliseconds (e.g., 300000 for 5 minutes)
  • TTL_STRING - Human-readable duration string (e.g., 1h, 30m, 3600s)

EnumResponseAssertionOperator​

  • EQUALS - Resolved value equals the expected value
  • NOT_EQUALS - Resolved value differs from the expected value
  • CONTAINS - Resolved value contains the expected value
  • NOT_CONTAINS - Resolved value does not contain the expected value
  • EXISTS - Resolved value is present and not blank (expected value is ignored)
  • NOT_EXISTS - Resolved value is missing or blank (expected value is ignored)
  • MATCHES_REGEX - Resolved value fully matches the expected value as a regular expression. An invalid pattern is treated as a failed assertion

Note​

  • url and httpMethod are required.
  • callType is required.
  • If enableCache: true, capacity and ttl are required (unless enableDynamicTtl: true), and callType must be SYNCHRONOUS.
  • If enableDynamicTtl: true, dynamicTtlVariable and dynamicTtlSourceType are required. When dynamic TTL is enabled, the static ttl field is used as fallback only if fallbackTtl is not specified.
  • If dynamicTtlSourceType: CUSTOM_DATETIME, dynamicTtlCustomDatePattern is required.
  • If dynamicTtlIsJwt: true, dynamicTtlJwtClaimName is required.
  • A dynamic TTL that resolves to zero or a negative value means the response has already expired; the response is not cached and fallbackTtl is not applied. Sentinel dates such as 0001-01-01T00:00:00, returned by some services on failed responses, fall into this case.
  • If enableResponseAssertion: true, responseAssertionVariable is required, and responseAssertionExpectedValue is required for every operator except EXISTS and NOT_EXISTS. A failed assertion only skips caching — the response is still returned to the caller.
  • If certificateEnabled: true, certificateName is required.
  • enableCompression defaults to false: no Accept-Encoding header is sent to the target service and the response is returned exactly as received. Set it to true when the target service returns a compressed response. This field is the only control for that header — an Accept-Encoding entry supplied in headersToBeAddedBeforeCallList is not forwarded.
headersToBeAddedBeforeCallList / headersToBeAddedAfterCallList​

Each header is an object with the following fields:

FieldTypeRequiredDescription
namestringYesHeader name
descriptionstringNoHeader description
valueSourcestringYesValue source: VALUE or VARIABLE
valuestringNo*Header value (required if valueSource=VALUE)
variableobjectNo*Variable object (required if valueSource=VARIABLE)
prefixstringNoHeader prefix

EnumValueSource​

  • VALUE - Use static value
  • VARIABLE - Extract from variable

EnumRestApiHeaderPrefix​

  • NONE - No prefix
  • BASIC - Basic prefix (for Authorization header)
  • BEARER - Bearer prefix (for Authorization header)
  • DIGEST - Digest prefix (for Authorization header)

Note​

  • If valueSource: VALUE, provide value.
  • If valueSource: VARIABLE, provide variable object.
parametersToBeAddedBeforeCallList / parametersToBeAddedAfterCallList​

Each parameter is an object with the following fields:

FieldTypeRequiredDescription
namestringYesParameter name
descriptionstringNoParameter description
valueSourcestringYesValue source: VALUE or VARIABLE
valuestringNo*Parameter value (required if valueSource=VALUE)
variableobjectNo*Variable object (required if valueSource=VARIABLE)

EnumValueSource​

  • VALUE - Use static value
  • VARIABLE - Extract from variable

Note​

  • If valueSource: VALUE, provide value.
  • If valueSource: VARIABLE, provide variable object.
urlEncodedList​

Each form parameter is an object with the following fields:

FieldTypeRequiredDescription
keystringYesForm parameter key
valuestringYesForm parameter value
descriptionstringNoParameter description

Note: Used when enumTestConsoleRequestBodyType: URL_ENCODED.

dataManipulationListBeforeCall / dataManipulationListAfterCall​

Each data manipulation is an object with the following fields:

FieldTypeRequiredDescription
operationstringYesOperation type: ADD, ADD_OR_EDIT, or DELETE
sourceValueSourcestringNoSource value source: VALUE or VARIABLE
sourceVarobjectNoSource variable
sourceValuestringNoSource value
targetNamestringYesTarget field name/path
targetValueSourcestringNoTarget value source: VALUE or VARIABLE
targetVarobjectNoTarget variable
targetValuestringNoTarget value

EnumRestApiDataManipulationDefOperation​

  • ADD - Add new field
  • ADD_OR_EDIT - Add or edit existing field
  • DELETE - Delete field

EnumValueSource​

  • VALUE - Use static value
  • VARIABLE - Extract from variable
cacheBy​

Variable object for cache key generation:

FieldTypeRequiredDescription
typestringYesVariable type: HEADER, PARAMETER, BODY, CONTEXT_VALUES, CUSTOM
headerNamestringNo*Header name (required if type=HEADER)
paramNamestringNo*Parameter name (required if type=PARAMETER)
contextValuestringNo*Context value (required if type=CONTEXT_VALUES)

Note: Cache key is generated from the specified variable. If not provided, entire request is used as cache key.

Response​

Success Response (200 OK)​

{
"status": "SUCCESS",
"deploymentResult": {
"success": true,
"deploymentResults": [
{
"environmentName": "production",
"success": true,
"message": "Deployment successful"
}
]
}
}

cURL Example​

curl -X POST \
"https://demo.apinizer.com/apiops/projects/MyProject/apiProxies/MyAPI/policies/external-api-call/" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationMetadata": {
"targetScope": "ALL",
"targetPipeline": "REQUEST",
"deploy": true,
"deployTargetEnvironmentNameList": ["production"],
"order": 1
},
"policy": {
"type": "policy-api-call",
"description": "Call external API",
"active": true,
"callType": "SYNCHRONOUS",
"httpMethod": "POST",
"url": "https://api.example.com/validate",
"timeout": 5000,
"removeAllHeadersBeforeCall": true,
"headersToBeAddedBeforeCallList": [
{
"name": "Content-Type",
"valueSource": "VALUE",
"value": "application/json"
}
],
"enableCache": false
}
}'

Update Policy​

Endpoint​

PUT /apiops/projects/{projectName}/apiProxies/{apiProxyName}/policies/{policyName}/

Request​

Headers​

HeaderValue
AuthorizationBearer {token}
Content-Typeapplication/json

Path Parameters​

ParameterTypeRequiredDescription
projectNamestringYesProject name
apiProxyNamestringYesAPI Proxy name
policyNamestringYesPolicy name

Request Body​

Full JSON Body Example​
{
"operationMetadata": {
"targetScope": "ALL",
"targetPipeline": "REQUEST",
"deploy": true,
"deployTargetEnvironmentNameList": ["production"],
"order": 1
},
"policy": {
"type": "policy-api-call",
"description": "Updated: Call external validation API with enhanced caching",
"active": true,
"callType": "SYNCHRONOUS",
"httpMethod": "POST",
"url": "https://api.example.com/v2/validate",
"timeout": 8000,
"certificateEnabled": false,
"clearBodyBeforeCall": false,
"useMessageTemplateBeforeCall": true,
"enumTestConsoleRequestBodyType": "JSON",
"bodyContentBeforeCall": "{\n \"userId\": \"${userId}\",\n \"action\": \"validate\",\n \"timestamp\": \"${timestamp}\"\n}",
"urlEncodedList": [],
"dataManipulationListBeforeCall": [],
"removeAllHeadersBeforeCall": true,
"headersToBeDeletedBeforeCallList": [],
"headersToBeAddedBeforeCallList": [
{
"name": "Content-Type",
"valueSource": "VALUE",
"value": "application/json",
"prefix": null
},
{
"name": "Authorization",
"valueSource": "VARIABLE",
"variable": {
"type": "HEADER",
"headerName": "Authorization"
},
"prefix": "BEARER"
},
{
"name": "X-Request-ID",
"valueSource": "VARIABLE",
"variable": {
"type": "HEADER",
"headerName": "X-Request-ID"
},
"prefix": null
}
],
"removeAllParametersBeforeCall": true,
"parametersToBeDeletedBeforeCallList": [],
"parametersToBeAddedBeforeCallList": [
{
"name": "apiKey",
"valueSource": "VALUE",
"value": "updated-api-key-2024"
},
{
"name": "version",
"valueSource": "VALUE",
"value": "v2"
}
],
"enableCache": true,
"cacheBy": {
"type": "HEADER",
"headerName": "Authorization"
},
"capacity": 5000,
"ttl": 7200,
"cacheNullResponses": false,
"cacheStorageType": "DISTRIBUTED",
"cacheConnectionTimeoutInSeconds": 3,
"cacheErrorAction": "CONTINUE",
"retrySettings": {
"enabled": true,
"retryCount": 2,
"retryDelayType": "EXPONENTIAL",
"retryInitialDelayMs": 500,
"retryMaxDelayMs": 10000,
"retryBackoffMultiplier": 2.0,
"retryOnStatusCodeList": [502, 503, 504],
"retryNonIdempotent": false
},
"afterCallBodyOperationType": "REPLACE_BODY",
"useMessageTemplateAfterCall": false,
"messageTemplateContentTypeAfterCall": "JSON",
"bodyContentAfterCall": null,
"dataManipulationListAfterCall": [],
"removeAllHeadersAfterCall": false,
"headersToBeDeletedAfterCallList": [],
"headersToBeAddedAfterCallList": [
{
"name": "X-Validated",
"valueSource": "VALUE",
"value": "true",
"prefix": null
}
],
"removeAllParametersAfterCall": false,
"parametersToBeDeletedAfterCallList": [],
"parametersToBeAddedAfterCallList": [],
"prepareMessage": false,
"modifyMessage": false,
"newBodyContentSourceType": null
}
}

Note: Request body structure is the same as Add Policy. All fields should be provided for update.

Response​

Success Response (200 OK)​

{
"status": "SUCCESS",
"deploymentResult": {
"success": true,
"deploymentResults": [
{
"environmentName": "production",
"success": true,
"message": "Deployment successful"
}
]
}
}

Delete Policy​

Endpoint​

DELETE /apiops/projects/{projectName}/apiProxies/{apiProxyName}/policies/{policyName}/

Request​

Headers​

HeaderValue
AuthorizationBearer {token}
Content-Typeapplication/json

Path Parameters​

ParameterTypeRequiredDescription
projectNamestringYesProject name
apiProxyNamestringYesAPI Proxy name
policyNamestringYesPolicy name

Request Body​

Full JSON Body Example​
{
"operationMetadata": {
"targetScope": "ALL",
"targetPipeline": "REQUEST",
"deploy": false
}
}

Request Body Fields​

operationMetadata​
FieldTypeRequiredDefaultDescription
targetScopestringYes-Policy scope: ALL or ENDPOINT
targetPipelinestringYes-Pipeline: REQUEST, RESPONSE, or ERROR
deploybooleanNofalseWhether to deploy after deletion

Response​

Success Response (200 OK)​

{
"status": "SUCCESS",
"deploymentResult": {
"success": true,
"deploymentResults": []
}
}

Notes and Warnings​

  • Call Type:

    • SYNCHRONOUS - Waits for response, supports caching
    • ONE_WAY - Fire-and-forget, no caching support
  • Caching:

    • Only available for SYNCHRONOUS calls
    • Requires capacity and ttl when enabled (static ttl is optional if enableDynamicTtl: true)
    • Cache key can be based on variable (e.g., Authorization header)
    • Dynamic TTL: When enableDynamicTtl: true, cache TTL is automatically calculated from a value in the API response (e.g., expireAt field, JWT exp claim, or expires_in value). Requires dynamicTtlVariable and dynamicTtlSourceType. Use dynamicTtlOffsetSeconds as safety margin and fallbackTtl as fallback when dynamic calculation fails.
  • Compression:

    • Disabled by default — no Accept-Encoding header is sent and the response is returned exactly as received
    • When enableCompression: true, the accepted compression formats (gzip, deflate, br, zstd and others) are advertised to the target service and a compressed response is decompressed automatically
    • Enable it when the target service returns a compressed response regardless of what the caller accepts, otherwise the response is carried on compressed
    • This field is the only control for the Accept-Encoding header — an entry for it in headersToBeAddedBeforeCallList is not forwarded
  • mTLS:

    • Requires certificateName when certificateEnabled: true
    • Certificate name is resolved to certificate ID automatically
    • Certificate must be configured in Certificate Store (project or global)
    • Certificate is searched first in project, then in global certificates
  • Request Transformation:

    • Use bodyContentBeforeCall with variable placeholders (e.g., ${userId})
    • Variables are replaced at runtime
  • Response Handling:

    • NOT_CHANGE_BODY - Original body remains unchanged
    • REPLACE_BODY - Original body replaced with API response
    • CLEAR_BODY - Original body cleared
  • Headers and Parameters:

    • Can remove all or specific headers/parameters
    • Can add new headers/parameters with static values or variables
  • URL Encoded Forms:

    • Use urlEncodedList when enumTestConsoleRequestBodyType: URL_ENCODED
  • Data Manipulation:

    • Add, edit, or delete fields in request/response
    • Supports variable extraction and transformation
  • Timeout: Specified in milliseconds

  • Deployment: Policy changes require deployment to take effect. Set deploy: true or deploy manually.