younifyd
Menu

Create a new metadata override rule for the specified field name

Create a new metadata override rule for the specified field name

POST/v1/metadata_overrides

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Create a new metadata override rule for the specified field name action (under Metadata Overrides).
  3. Fill in the fields below, then reference the result from later steps as {{createANewMetadataOverrideRuleForTheSpecifiedFieldName.response.data}}.

Request

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.

field_namestringrequired

Field name associated with the metadata override configuration.

field_path_in_metadatastringrequired

Path to the field in metadata where the metadata override configuration is applied.

rulesarray<object>required

List of rules associated with the metadata override configuration. In total, there can be a maximum of 5 rules per key.

start_timestring (date-time)required

Datetime (In UTC) when the rule should be enabled. Overlapping rules are not allowed.

end_timestring (date-time)required

Datetime (In UTC) when the rule should be disabled. Overlapping rules are not allowed.

replaced_field_namestringrequired

Field name that the rule is replacing.

replaced_field_path_in_metadatastringrequired

Path to the replacement field in metadata.

json
{
  "field_name": "string",
  "field_path_in_metadata": "string",
  "rules": [
    {
      "start_time": "2025-01-01T00:00:00Z",
      "end_time": "2025-01-01T00:00:00Z",
      "replaced_field_name": "string",
      "replaced_field_path_in_metadata": "string"
    }
  ]
}

Response

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

field_namestring

Field name associated with the metadata override configuration.

field_path_in_metadatastring

Path to the field in metadata where the metadata override configuration is applied.

rulesarray<object>

List of rules associated with metadata override configuration.

start_timestring (date-time)required

Datetime (In UTC) when the rule should be enabled. Overlapping rules are not allowed.

end_timestring (date-time)required

Datetime (In UTC) when the rule should be disabled. Overlapping rules are not allowed.

replaced_field_namestringrequired

Field name that the rule is replacing.

replaced_field_path_in_metadatastringrequired

Path to the replacement field in metadata.

json
{
  "field_name": "string",
  "rules": [
    {
      "start_time": "2025-01-01T00:00:00Z",
      "end_time": "2025-01-01T00:00:00Z",
      "replaced_field_name": "string",
      "replaced_field_path_in_metadata": "string"
    }
  ],
  "field_path_in_metadata": "string"
}

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