Overview
When you create a workspace with the API_Accel product ID, Delivery Manager seeds every new environment version with a pre-populated group of settings. These settings are the foundational layer of your configuration: they sit at the top of the default rule set and apply to every incoming request unless a rule lower in the tree overrides them.
The values are tuned for API Acceleration's delivery profile — small, dynamic, mostly uncacheable responses, where availability and round-trip time are what you're buying, and where the client is a program rather than a browser. Two consequences show up all over the template: caching ships off, and the write methods ship on.
This page explains the JSON syntax of that template, what each setting does, why it ships with the value it does, and which values you must change before your first activation.
API Acceleration isAPI_Accel
API_Accelis the product ID for API Acceleration in the Delivery Manager API. List products returns it for every contract that's entitled to it.
Where the defaults come from
Two operations matter:
| Operation | Method and endpoint | What you get |
|---|---|---|
| Get product definition | GET /products/API_Accel | newEnvironmentVersionTemplate — the exact object new environment versions start from — plus settingsCategories, behaviorDefinitions, validationRules, and latestRuleFormat |
| Create an environment version | POST /workspaces/{workspaceName}/environments/{environmentName}/versions | The version the template was applied to |
Read the template before you write your first environment version. It's the only place the shipped values are expressed in full, and it's versioned: catalogVersion and latestRuleFormat in the same response tell you which catalog produced them.
Two different "defaults" exist — don't confuse them
behaviorDefinitions[<behavior>].options[*].defaultValis the behavior schema default: the value a behavior falls back to anywhere in a rule tree.newEnvironmentVersionTemplateis the API Acceleration product template: what your environment version is actually created with. The product template overrides the schema default in several places — the caching policy, error caching, the write methods, and the downstream header set. When this page says "ships as," it means the product template. Reference pages under Behaviors describe the schema, not the product template.
Syntax
The settings object
Default settings live in the defaultRuleSet.defaultSettings array of an environment version. Each entry is a behavior object with two members:
{
"name": "caching",
"options": {
"behavior": "NO_STORE"
}
}name— the behavior's API name, camelCase. It's the same name the Behaviors reference uses.options— the behavior's options. Option availability is often conditional: an option only belongs in the object when its parent option has the right value. Each behavior's reference page states those dependencies in its Requires column, and this page marks the ones that affect the API Acceleration defaults.
Array order carries no meaning. Two entries with the same name aren't allowed in defaultSettings.
Template behaviors
Six of the eighteen settings end in Template — setOriginTemplate, http2Template, downstreamCacheTemplate, deploymentNetworkTemplate, allowMethodsTemplate, and gzipResponseTemplate. These are composite behaviors: one object that stands in for what a classic property expressed as several separate behaviors inside several pre-added child rules. allowMethodsTemplate alone replaces seven allow* behaviors.
Two consequences for API work:
- Template behaviors are valid only in
defaultSettings. Don't put them inrules[]or in a custom rule set — use the equivalent individual behaviors there. - Their options are flat, not nested. There are no sub-objects.
Note what's not a template here: caching. Where Ion and DSA use a composite cachingTemplate, API Acceleration seeds four individual behaviors — caching, cacheError, removeVary, and validateEntityTag — which means the same objects work unchanged in a rule.
defaultSettingsEnabled
defaultSettingsEnableddefaultRuleSet.defaultSettingsEnabled controls whether the product's optimized group of features applies to the version at all:
{
"defaultRuleSet": {
"defaultSettingsEnabled": true,
"defaultSettings": [ ... ],
"rules": [ ... ]
}
}Keep it true unless you have a specific reason to build a configuration from bare behaviors. Setting it to false discards the best-practice baseline described on this page, and you then own every value in it — including the ones validation requires.
Changing a default value
Use a read-modify-write cycle against the version itself:
GET /products/API_Accelonce, to see the shipped template and the catalog version it came from.POST .../versionsto create the version, orGET .../versions/{version}to read the one you have.- Modify the
defaultSettingsentries you care about. PUT /workspaces/{workspaceName}/environments/{environmentName}/versions/{version}with thedefaultSettingsarray in full.
Sending the complete array is the safe pattern: it's explicit about every value, it's diffable in source control, and it behaves identically whether you're creating or updating a version. Build it from the template response rather than hand-writing it, so a catalog update doesn't silently drop settings you never looked at.
You can edit a version until it's activated. After activation, create a new version.
The UI writes to the same placeChanges made on the Settings tab are synchronized with the Default settings rule under the Default rule set, which is the
defaultRuleSet.defaultSettingsarray this page describes.
What you must change before activating
The template is complete except for values Akamai can't supply for you:
| Setting | Ships as | What you need to do |
|---|---|---|
enhancedDebug.debugKey | "" | Generate a 64-byte hex string and set it. An empty mandatory key is what most first versions fail on. |
origins[].options | {} | Set your origin's hostname and any authentication options. The template only names the origin (main); the connection details are yours. |
cpCode | enableDefaultContentProviderCode: true | Fine for a first test. To report or bill this traffic separately, pin an explicit CP code. |
sureRoute.testObjectUrl | /akamai/sureroute-test-object.html | The path is seeded, but the object must exist on your origin, or SureRoute races fail. On an uncacheable API workload SureRoute carries a lot of the product's value, so don't skip this. |
Two more are worth a decision rather than an edit: caching ships NO_STORE, and allowMethodsTemplate ships with PUT, PATCH, and DELETE allowed. Both are right for most APIs and wrong for some. See Accelerate Delivery & Offload Origin and Access Control & Security.
Settings categories
settingsCategories in the product definition groups the settings for display. The grouping is presentational — it doesn't affect evaluation — but it's what the UI's category pages are named after.
API Acceleration has five categories. There's no failover group in the default settings.
categoryName | Behaviors | API documentation | UI documentation |
|---|---|---|---|
origin | setOriginTemplate | Origin | Origin |
reporting_logging | cpCode, enhancedDebug | Reporting and logging | Reporting & Logging |
accelerate_delivery_offload_origin | dnsAsyncRefresh, http3, http2Template, allowTransferEncoding, sureRoute, earlyData, caching, cacheError, removeVary, validateEntityTag, downstreamCacheTemplate | Accelerate Delivery & Offload Origin | Accelerate Delivery & Offload Origin |
access_control_security | deploymentNetworkTemplate, allowMethodsTemplate | Access Control & Security | Access Control & Security |
minimize_payload | brotli, gzipResponseTemplate | Minimize Payload | Minimize Payload |
Validation
validationRules in the product definition states what API Acceleration requires of any environment version:
{
"validation": {
"required_features": {
"default_rule": ["origin", "cpCode"],
"any_rule": ["caching"]
}
}
}default_rule— your default settings must configure an origin and a CP code. The template satisfies both (setOriginTemplate,cpCode), so you only break this by removing them.any_rule— caching must be configured somewhere in the rule tree. The template'scachingbehavior satisfies this even though its value isNO_STORE: the requirement is that you've made a caching decision, not that you cache.
These are the same requirements Ion and DSA carry.
Validation runs on activation, not on POST or PUT, so a version can be saved and still be unactivatable. Call Get validation resources to see what a version needs before you try. The empty enhancedDebug.debugKey is the error most first-time versions hit.
Overriding a default for some requests
Default settings apply to every request. To change behavior for a subset, don't edit the default settings — add a rule. Rule configuration evaluates top down and the bottom-most match wins, so a rule placed below the default settings overrides them for the requests it matches:
{
"defaultRuleSet": {
"defaultSettingsEnabled": true,
"defaultSettings": [ ... ],
"rules": [
{
"name": "Cache reference data",
"description": "Caches read-only endpoints that don't vary per caller",
"criteria": [
{
"name": "path",
"options": {
"values": ["/v1/reference/*"]
}
}
],
"behaviors": [
{
"name": "caching",
"options": {
"behavior": "MAX_AGE",
"ttl": "5m"
}
}
],
"tags": ["caching"]
}
]
}
}That's the characteristic API Acceleration edit: the template declines to cache anything, and you add back the specific endpoints — reference data, catalogs, feature flags — that are safe to hold for a short time. Because the default settings use the individual caching behavior rather than a template behavior, the object in the rule has exactly the same shape as the one in defaultSettings.
For logic you want to share or version separately, use a custom rule set and position it with ruleSetOrder. See Rule configuration logic for precedence and nesting.
What's not in the default settings
The catalog carries far more behaviors than the eighteen the template seeds. Everything else your contract entitles is available through standalone behaviors and match criteria — it's just not pre-configured, and you add it to a rule rather than to defaultSettings.
Two absences are worth naming because API configurations usually need them: there's no report behavior (log field selection) and no failover setting. Add them to a rule if you need them.
Check behaviorDefinitions in the product definition for the full API Acceleration catalog and the behavior versions your rule format supports.
Coming from an API Acceleration property
If you're porting a PAPI configuration, two things change.
Shape. A classic property arrived as pre-added child rules under the Default Rule, each holding individual behaviors. Here, one flat defaultSettings array holds them, with allowMethodsTemplate replacing seven allow* behaviors and http2Template replacing the individual http2 behavior.
Values. Several shipped values are intentional overrides of the behavior schema defaults — caching at NO_STORE, cacheError off, the three write methods allowed, and CACHE_CONTROL_AND_EXPIRES downstream. Diff your property's default rule against the template before you assume anything carried over.
