younifyd
Menu

Update refined tag

Update refined tag

PATCH/v1/refined_tags/{tag_name}/{tag_value}

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Update refined tag action (under Refined Tags).
  3. Fill in the fields below, then reference the result from later steps as {{updateRefinedTag.response.data}}.

Request

Path parameters

tag_namestringrequired
tag_valuestringrequired

Query parameters

sectionstring

The section of the index to use. Defaults to `Products`.

cstring

The ID of the client and version that the request is coming from, such as `cio-js-2.90`.

Request body

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

boost_rulesarray<object>

The boost rules attached to the refined tag. It is allowed to create maximum 50 manual and 50 automatic rules. The number of rules for each of the types includes both active and inactive rules

request_tag_nameany

Request tag name to be used to activate this entity for, used only with `request_tag_value`.

request_tag_valuestring

Request tag value to be used to activate this entity for, used only with request_tag_name.

activeboolean

Indicates whether this rule is active or not.

start_timestring (date-time)

Date and time when the rule should be enabled.

end_timestring (date-time)

Date and time when the rule should be disabled.

campaign_idinteger
automatically_generatedboolean

Boolean to indicate if this rule is automatically generated or not.

ruleanyrequired

Rule definition of the boost rule.

rule_typestring

One ofboost

blacklist_rulesarray<object>

The blacklist rules attached to the refined tag

request_tag_nameany

Request tag name to be used to activate this entity for, used only with `request_tag_value`.

request_tag_valuestring

Request tag value to be used to activate this entity for, used only with request_tag_name.

activeboolean

Indicates whether this rule is active or not.

start_timestring (date-time)

Date and time when the rule should be enabled.

end_timestring (date-time)

Date and time when the rule should be disabled.

campaign_idinteger
automatically_generatedboolean

Boolean to indicate if this rule is automatically generated or not.

ruleanyrequired

Rule definition of the blacklist rule.

rule_typestring

One ofblacklist

slot_rulesarray<object>

The slotting rules attached to the refined tag

request_tag_nameany

Request tag name to be used to activate this entity for, used only with `request_tag_value`.

request_tag_valuestring

Request tag value to be used to activate this entity for, used only with request_tag_name.

activeboolean

Indicates whether this rule is active or not.

start_timestring (date-time)

Date and time when the rule should be enabled.

end_timestring (date-time)

Date and time when the rule should be disabled.

campaign_idinteger
automatically_generatedboolean

Boolean to indicate if this rule is automatically generated or not.

ruleanyrequired

Parameters of the slot rule.

rule_typestring

One ofslot

whitelist_ruleany

The whitelist rule attached to the refined tag

allow_automatic_rulesboolean

Specifies whether to allow automatic creation of rules

last_reviewed_atstring (date-time)

The date of the last review

last_reviewed_bystring

The user who last reviewed the refined tag

next_review_atstring (date-time)

The date of the next review

json
{
  "boost_rules": [
    {
      "rule": null,
      "request_tag_name": null,
      "request_tag_value": "string",
      "active": false,
      "start_time": "2025-01-01T00:00:00Z",
      "end_time": "2025-01-01T00:00:00Z",
      "campaign_id": 0,
      "automatically_generated": false,
      "rule_type": "boost"
    }
  ],
  "blacklist_rules": [
    {
      "rule": null,
      "request_tag_name": null,
      "request_tag_value": "string",
      "active": false,
      "start_time": "2025-01-01T00:00:00Z",
      "end_time": "2025-01-01T00:00:00Z",
      "campaign_id": 0,
      "automatically_generated": false,
      "rule_type": "blacklist"
    }
  ],
  "slot_rules": [
    {
      "rule": null,
      "request_tag_name": null,
      "request_tag_value": "string",
      "active": false,
      "start_time": "2025-01-01T00:00:00Z",
      "end_time": "2025-01-01T00:00:00Z",
      "campaign_id": 0,
      "automatically_generated": false,
      "rule_type": "slot"
    }
  ],
  "whitelist_rule": null,
  "allow_automatic_rules": false,
  "last_reviewed_at": "2025-01-01T00:00:00Z",
  "last_reviewed_by": "string",
  "next_review_at": "2025-01-01T00:00:00Z"
}

Response

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

allow_automatic_rulesboolean

Specifies whether to allow automatic creation of rules

last_reviewed_atstring (date-time)

The date of the last review

last_reviewed_bystring

The user who last reviewed the refined tag

next_review_atstring (date-time)

The date of the next review

tag_namestring
tag_valuestring
boost_rulesarray<object>
idintegerrequired

The ID of the rule, must be unique.

request_tag_nameany

Request tag name to be used to activate this entity for, used only with `request_tag_value`.

request_tag_valuestring

Request tag value to be used to activate this entity for, used only with request_tag_name.

activeboolean

Indicates whether this rule is active or not.

start_timestring (date-time)

Date and time when the rule should be enabled.

end_timestring (date-time)

Date and time when the rule should be disabled.

campaign_idinteger
automatically_generatedboolean

Boolean to indicate if this rule is automatically generated or not.

ruleanyrequired

Rule definition of the boost rule.

rule_typestringrequired

One ofboost

created_atstring (date-time)

Date & time in ISO 8601 format for the creation of this rule.

updated_atstring (date-time)

Date & time in ISO 8601 format for last update for this rule.

blacklist_rulesarray<object>
idintegerrequired

The ID of the rule, must be unique.

request_tag_nameany

Request tag name to be used to activate this entity for, used only with `request_tag_value`.

request_tag_valuestring

Request tag value to be used to activate this entity for, used only with request_tag_name.

activeboolean

Indicates whether this rule is active or not.

start_timestring (date-time)

Date and time when the rule should be enabled.

end_timestring (date-time)

Date and time when the rule should be disabled.

campaign_idinteger
automatically_generatedboolean

Boolean to indicate if this rule is automatically generated or not.

ruleanyrequired

Rule definition of the blacklist rule.

rule_typestringrequired

One ofblacklist

created_atstring (date-time)

Date & time in ISO 8601 format for the creation of this rule.

updated_atstring (date-time)

Date & time in ISO 8601 format for last update for this rule.

whitelist_ruleobject
idintegerrequired

The ID of the rule, must be unique.

request_tag_nameany

Request tag name to be used to activate this entity for, used only with `request_tag_value`.

request_tag_valuestring

Request tag value to be used to activate this entity for, used only with request_tag_name.

activeboolean

Indicates whether this rule is active or not.

start_timestring (date-time)

Date and time when the rule should be enabled.

end_timestring (date-time)

Date and time when the rule should be disabled.

campaign_idinteger
automatically_generatedboolean

Boolean to indicate if this rule is automatically generated or not.

ruleanyrequired

Rule definition of the whitelist rule.

rule_typestringrequired

One ofwhitelist

created_atstring (date-time)

Date & time in ISO 8601 format for the creation of this rule.

updated_atstring (date-time)

Date & time in ISO 8601 format for last update for this rule.

json
{
  "tag_name": "string",
  "tag_value": "string",
  "boost_rules": [
    {
      "id": 0,
      "rule": null,
      "rule_type": "boost",
      "request_tag_name": null,
      "request_tag_value": "string",
      "active": false,
      "start_time": "2025-01-01T00:00:00Z",
      "end_time": "2025-01-01T00:00:00Z",
      "campaign_id": 0,
      "automatically_generated": false,
      "created_at": "2025-01-01T00:00:00Z",
      "updated_at": "2025-01-01T00:00:00Z"
    }
  ],
  "blacklist_rules": [
    {
      "id": 0,
      "rule": null,
      "rule_type": "blacklist",
      "request_tag_name": null,
      "request_tag_value": "string",
      "active": false,
      "start_time": "2025-01-01T00:00:00Z",
      "end_time": "2025-01-01T00:00:00Z",
      "campaign_id": 0,
      "automatically_generated": false,
      "created_at": "2025-01-01T00:00:00Z",
      "updated_at": "2025-01-01T00:00:00Z"
    }
  ],
  "allow_automatic_rules": false,
  "last_reviewed_at": "2025-01-01T00:00:00Z",
  "last_reviewed_by": "string",
  "next_review_at": "2025-01-01T00:00:00Z",
  "whitelist_rule": {
    "id": 0,
    "rule": null,
    "rule_type": "whitelist",
    "request_tag_name": null,
    "request_tag_value": "string",
    "active": false,
    "start_time": "2025-01-01T00:00:00Z",
    "end_time": "2025-01-01T00:00:00Z",
    "campaign_id": 0,
    "automatically_generated": false,
    "created_at": "2025-01-01T00:00:00Z",
    "updated_at": "2025-01-01T00:00:00Z"
  }
}

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