younifyd
Menu

Patch an existing metadata override rule for the specified field name

Patch an existing metadata override rule for the specified field name

PATCH/v1/metadata_overrides/{field_name}

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Patch an existing 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 {{patchAnExistingMetadataOverrideRuleForTheSpecifiedFieldName.response.data}}.

Request

Path parameters

field_namestringrequired

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_path_in_metadatastring

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

rulesarray<object>

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_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 {{patchAnExistingMetadataOverrideRuleForTheSpecifiedFieldName.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.