upsertOriginHeaderModification
PUT
https://{shortCode}.api.commercecloud.salesforce.com/cdn/zones/v1/organizations/{organizationId}/zones/{zoneId}/origin-header-modification/{type}
Upsert origin header modification. Only the mrt
type is supported.
Request
curl "https://{shortCode}.api.commercecloud.salesforce.com/cdn/zones/v1/organizations/{organizationId}/zones/{zoneId}/origin-header-modification/{type}" \
-X PUT \
-H "content-type: application/json" \
-d '{
"headerValue": "123456789"
}'
Security
URI parameters
shortCode
string
Required
Region-specific merchant identifier.
0dnz6oep
version
string
Required
organizationId
string
Required
zoneId
string
Required
type
string
Required
The type of origin header modification. Only the mrt
type is supported.
mrt
Body
Media type:
application/json
{
"headerValue": "123456789"
}
headerValue
string
Required
The value of the header forwarded to the origin.
123456789
headerName
string
The name of the header forwarded to the origin. Cannot be modified for the MRT origin.
Responses
Successfully updated the origin header modification.
{
"data": {
"headerName": "x-sfdc-access-control",
"headerValue": "********789",
"lastUpdated": "2024-04-27T18:32:34.675182Z"
}
}
Body
Media type:
application/json
data
object
Required
An origin header modification rule.