Menu
Update Cors Preferences
Create or replace all CORS preferences for the given site.
PUT
/organizations/{organizationId}/corsUse it in a workflow
- Add a step and choose the Salesforce Commerce Cloud connector.
- Pick the Update Cors Preferences action (under CORS (Data API)).
- Fill in the fields below, then reference the result from later steps as
{{updateCorsPreferences.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"corsClientPreferences": [
{
"clientId": "12345678-90ab-cdef-fedc-ba0987654321",
"origins": [
[
"http://foo.com",
"https://foo.bar.com",
"myapp://example.com"
]
]
}
]
}
Response
Returns 200 with an object. Read it in later steps with {{updateCorsPreferences.response.data.<field>}}.
{
"corsClientPreferences": [
{
"clientId": "12345678-90ab-cdef-fedc-ba0987654321",
"origins": [
[
"http://foo.com",
"https://foo.bar.com",
"myapp://example.com"
]
]
}
]
}
Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.
Was this page helpful?