Endpoint
Authentication
Requires a Personal API Access Token.Header
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer | Yes |
| Content-Type | application/json | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
| apiProxyName | string | Yes | API Proxy name |
Request Body
Full JSON Body Example
Request Body Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | Yes | - | Cache settings name |
| description | string | No | - | Cache settings description |
| cacheActive | boolean | No | false | Enable/disable cache |
| cacheOnlyHttpGetRequests | boolean | No | true | Cache only GET requests (if false, caches all methods) |
| cacheKeyType | string | No | QUERY_PARAMS | Cache key type |
| cacheStorageType | string | No | DISTRIBUTED | Cache storage type |
| capacity | integer | No | - | Maximum cache capacity (number of entries) |
| ttl | integer | No | - | Time to live in seconds |
| handlingAction | string | Yes | - | Cache handling action when cache hit occurs |
| invalidationRequiresAuthn | boolean | No | false | Require authentication for cache invalidation |
| cacheNullValue | boolean | No | false | Cache null/empty responses |
| variableList | array | No | [] | List of variables for custom cache key (if cacheKeyType=CUSTOM) |
EnumCacheKeyType
QUERY_PARAMS- Use query parameters as cache keyCUSTOM- Use custom variables as cache key (requires variableList)
EnumCacheStorageType
LOCAL- Local cache (per worker instance)DISTRIBUTED- Distributed cache (shared across all workers)
EnumCacheHandlingAction
CONTINUE- Return cached response and continue to backend (for logging/monitoring)STOP- Return cached response and stop (do not call backend)
Variable Object (for variableList when cacheKeyType=CUSTOM)
EnumVariableType
HEADER- Extract from HTTP headerPARAMETER- Extract from query parameterBODY- Extract from request bodyCONTEXT_VALUES- Extract from context valuesCUSTOM- Custom variable
EnumConditionVariableDataType
NUMERIC- Numeric valueSTRING- String valueDATE- Date value
Response
Success Response (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Indicates if the request was successful |
Error Response (400 Bad Request)
Common Causes
- Missing required field
handlingAction - Invalid enum values
- Invalid cache configuration
Error Response (401 Unauthorized)
Error Response (404 Not Found)
cURL Example
Example 1: Basic Cache Configuration
Example 2: Custom Cache Key
Notes and Warnings
- handlingAction: Required field.
CONTINUEallows backend call for logging,STOPprevents backend call - Cache Key: When
cacheKeyType=CUSTOM, providevariableListto define cache key components - Storage Type:
LOCALcache is faster but not shared;DISTRIBUTEDcache is shared across workers - TTL: Cache entries expire after TTL seconds
- Capacity: Maximum number of cache entries (older entries are evicted when limit reached)
- GET Only: When
cacheOnlyHttpGetRequests=true, only GET requests are cached (endpoint-level cache can override) - Null Values: When
cacheNullValue=false, null/empty responses are not cached
Permissions
User must haveAPI_MANAGEMENT + MANAGE permission in the project.
Related Documentation
- Update CORS Settings - Update CORS settings
- Get API Proxy - Get API proxy details

