younifyd
Menu

Upsert Origin Header Modification

Upsert Origin Header Modification

PUT/organizations/{organizationId}/zones/{zoneId}/origin-header-modification/{type}

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Upsert Origin Header Modification action (under Zones (Data API)).
  3. Fill in the fields below, then reference the result from later steps as {{upsertOriginHeaderModification.response.data}}.

Request

Path parameters

zoneIdstringrequired
typestringrequired

The type of origin header modification. Only the `mrt` type is supported.

organizationIdstringrequired

An identifier for the organization the request is being made by

Request body

Enter the body as JSON in the step's Body field.

headerValuestringrequired

The value of the header forwarded to the origin.

headerNamestring

The name of the header forwarded to the origin. Cannot be modified for the MRT origin.

json
{
  "headerValue": "123456789",
  "headerName": "x-sfdc-access-control"
}

Response

Returns 200 with an object. Read it in later steps with {{upsertOriginHeaderModification.response.data.<field>}}.

dataobject

An origin header modification rule.

headerNamestringrequired

The name of the header forwarded to the origin.

headerValuestringrequired

The masked value of the header forwarded to the origin.

lastUpdatedstring (date-time)required

Date when the rule was last updated.

json
{
  "data": {
    "headerName": "x-sfdc-access-control",
    "headerValue": "****************789",
    "lastUpdated": "2022-01-01T05:20:00Z"
  }
}

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.

Upsert Origin Header Modification — Salesforce Commerce Cloud — Documentation