younifyd
Menu

Create Or Update Category Rule Condition

Create or update a condition.

PUT/organizations/{organizationId}/catalogs/{catalogId}/categories/{categoryId}/rules/{ruleId}/conditions/{conditionId}

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Create Or Update Category Rule Condition action (under Catalogs (Data API)).
  3. Fill in the fields below, then reference the result from later steps as {{createOrUpdateCategoryRuleCondition.response.data}}.

Request

Path parameters

conditionIdanyrequired

The Id of the condition.

ruleIdanyrequired

The Id of the rule

categoryIdstringrequired

The ID of the category to be created.

catalogIdstringrequired

The ID of the requested catalog.

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.

idanyrequired

The ID of the condition.

attributeKeyanyrequired

The key of the attribute(system or custom). This represents the ID of the attribute.

attributeNameany

The human-readable name of the attribute(system or custom). This is a read-only field.

attributeValuearray<any>required

The value of the attribute.

operatorstringrequired

The operator for the condition.

One ofstarts_withcontainsequalsnot_equalsgreater_thanless_thanis_one_ofnot_one_ofis_definedis_not_defined

json
{
  "id": "NameCondition",
  "attributeKey": "name",
  "attributeValue": [
    "Shirt"
  ],
  "operator": "starts_with",
  "attributeName": "name"
}

Response

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

idany

The ID of the condition.

attributeKeyany

The key of the attribute(system or custom). This represents the ID of the attribute.

attributeNameany

The human-readable name of the attribute(system or custom). This is a read-only field.

attributeValuearray<any>

The value of the attribute.

operatorstring

The operator for the condition.

One ofstarts_withcontainsequalsnot_equalsgreater_thanless_thanis_one_ofnot_one_ofis_definedis_not_defined

json
{
  "id": "NameCondition",
  "attributeKey": "name",
  "attributeValue": [
    "Shirt"
  ],
  "operator": "starts_with",
  "attributeName": "name"
}

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

Create Or Update Category Rule Condition — Salesforce Commerce Cloud — Documentation