---
updatedAt: 2026-06-15T13:07:40.000Z
agentTools:
  siteIndex: https://documentation.bloomreach.com/llms.txt
  projectIndex: https://documentation.bloomreach.com/discovery/llms.txt
---

# Modify current configuration

Programmatically modify the current catalog configuration to automate common tasks.


> 📘 Note
>
> The `data` field in the response object differs based on the type on Catalog. For product catalogs, you will only get the `ProductConfiguration` part, and for content catalogs, you will only get the `ContentConfiguration` part of the response.

## Sample POST request 

***

[block:parameters]
{
  "data": {
    "h-0": "",
    "h-1": "",
    "0-0": "**POST**",
    "0-1": "`https://discovery.bloomreach.com/dataconnect/api/v3/accounts/{account_name}/catalogs/{catalog_name}/environments/{environment_name}/configs/LATEST`<br><br> The _catalog name_ is exactly the same as your domain key in your Search API requests, and points to where this information will be stored on the backend, represented with catalog name and language key.",
    "1-0": "**Header**",
    "1-1": "`Authorization: Bearer <API key>`<br><br> Replace with your API key.",
    "2-0": "**Request Body**",
    "2-1": "A sample JSON request body is given below.<br><br> The `if_match_etag` value determines the current catalog configuration. If the configuration object sent in the request body has any changes from the current configuration, the changes are saved and applied as a new configuration with a new `etag`. You can edit or add multiple attribute objects in the `custom_attributes` object at once. "
  },
  "cols": 2,
  "rows": 3,
  "align": [
    null,
    null
  ]
}
[/block]

```json Sample request body
{  
    "meta": {  
        "if_match_etag": "c9c7b0817ac8638c2fefc68525cda58e"  
    },  
    "data": {  
        "config": {  
            "feed": {  
                "enable_feed_jobs": true  
            },  
            "index": {  
                "enable_index_jobs": true,  
                "enable_auto_indexing": false,  
                "search_docs_drop_threshold": 40,  
                "search_unavailable_docs": false  
            },  
            "variants": {  
                "sku_select": "off",  
                "enable_hero_sku_ranking": false,  
                "enable_filtering": false,  
                "ranking_attributes": \[],  
                "grouping_attribute": "",  
                "use_unavailable_variant_as_hero": true,  
                "search_document_variants_limit": -1  
            },  
            "custom_attributes_defaults": {  
                "facetable": "off",  
                "searchable": false  
            },  
            "custom_attributes": {  
                "brand": {  
                    "level": "product",  
                    "displayable": true,  
                    "facetable": "manual",  
                    "searchable": true,  
                    "multi_valued": false,  
                    "data_type": "text"  
                },  
                "category2": {  
                    "level": "product",  
                    "displayable": true,  
                    "facetable": "auto",  
                    "searchable": true,  
                    "multi_valued": false,  
                    "data_type": "text"  
                },  
                "hidden": {  
                    "level": "product",  
                    "displayable": true,  
                    "facetable": "manual",  
                    "searchable": false,  
                    "multi_valued": false,  
                    "data_type": "text"  
                }  
            },  
            "autosuggest": {  
                "product_attributes": {  
                    "categories": "leaf_only",  
                    "other_attributes": [  
                        "title"  
                    ]  
                },  
                "minimum_character_count": 4,  
                "word_count_limit": 5,  
                "product_autosuggest": true,  
                "attribute_autosuggest": false,  
                "attribute_type": "brand",  
                "attribute_autosuggest_limit": 0  
            },  
            "core_attribute_searchability": {  
                "category_ids": true,  
                "category_names": true,  
                "product_ids": true,  
                "variant_ids": true  
            },  
            "reserved_attribute_searchability": {  
                "brand": true,  
                "capacity": true,  
                "catalog_code": true,  
                "color": true,  
                "color_group": true,  
                "depth": false,  
                "description": true,  
                "gender": false,  
                "height": false,  
                "item_no": true,  
                "keywords": true,  
                "model_no": true,  
                "price": false,  
                "reviews": false,  
                "sale_price": true,  
                "size": true,  
                "store_id": true,  
                "suite_info": true,  
                "title": true,  
                "width": false  
            }  
        }  
    }  
}
```

### Parameters overview

***

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Catalog management API",
    "version": "3.0.0"
  },
  "servers": [
    {
      "url": "https://discovery.bloomreach.com/dataconnect/api/v3"
    }
  ],
  "paths": {
    "/accounts/{account_name}/catalogs/{catalog_name}/environments/{environment_name}/configs/LATEST": {
      "parameters": [
        {
          "$ref": "#/components/parameters/AccountName"
        },
        {
          "$ref": "#/components/parameters/CatalogName"
        },
        {
          "$ref": "#/components/parameters/EnvironmentName"
        }
      ],
      "post": {
        "tags": [
          "Catalog configuration"
        ],
        "summary": "Modify current configuration",
        "description": "Programmatically modify the current catalog configuration to automate common tasks.\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "meta": {
                    "type": "object",
                    "properties": {
                      "if_match_etag": {
                        "type": "string",
                        "description": "The ETag of the catalog's current configuration."
                      }
                    },
                    "required": [
                      "if_match_etag"
                    ]
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "config": {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/ProductConfiguration"
                          },
                          {
                            "$ref": "#/components/schemas/ContentConfiguration"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK - The new config matches the current one, and no change is made. Click to see the response structure.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "meta": {
                      "type": "object",
                      "properties": {
                        "previous_etag": {
                          "type": "string"
                        },
                        "new_etag": {
                          "type": "string"
                        }
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "config": {
                          "oneOf": [
                            {
                              "$ref": "#/components/schemas/ProductConfiguration"
                            },
                            {
                              "$ref": "#/components/schemas/ContentConfiguration"
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "Created - The new config differs from the current one, and the changes are applied. Click to see the response structure.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "meta": {
                      "type": "object",
                      "properties": {
                        "previous_etag": {
                          "type": "string"
                        },
                        "new_etag": {
                          "type": "string"
                        }
                      }
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "config": {
                          "oneOf": [
                            {
                              "$ref": "#/components/schemas/ProductConfiguration"
                            },
                            {
                              "$ref": "#/components/schemas/ContentConfiguration"
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "meta": {
                      "type": "object",
                      "properties": {
                        "etag": {
                          "type": "string"
                        }
                      }
                    },
                    "details": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ErrorResponse"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/404Response"
                }
              }
            }
          },
          "412": {
            "description": "if_match_etag field did not match expected value",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/412Response"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/429Response"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/500Response"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "AccountName": {
        "description": "Your unique account name.",
        "name": "account_name",
        "in": "path",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "required": true,
        "example": "homeoasis"
      },
      "CatalogName": {
        "description": "\"Catalog name\" is also called domain key. Use the same value as your domain key in your search API requests.",
        "name": "catalog_name",
        "in": "path",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64
        },
        "required": true,
        "example": "homeoasis_fr"
      },
      "EnvironmentName": {
        "description": "The type of environment you want to use for the request (Production/Staging).",
        "name": "environment_name",
        "in": "path",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 64,
          "enum": [
            "production",
            "staging"
          ]
        },
        "required": true
      }
    },
    "schemas": {
      "ContentConfiguration": {
        "type": "object",
        "properties": {
          "feed": {
            "type": "object",
            "properties": {
              "enable_feed_jobs": {
                "type": "boolean"
              }
            }
          },
          "index": {
            "type": "object",
            "properties": {
              "enable_index_jobs": {
                "type": "boolean"
              },
              "search_docs_drop_threshold": {
                "type": "number"
              }
            }
          },
          "custom_attributes_defaults": {
            "type": "object",
            "properties": {
              "facetable": {
                "type": "string",
                "enum": [
                  "auto",
                  "manual",
                  "off"
                ]
              },
              "searchable": {
                "type": "boolean"
              }
            }
          },
          "custom_attributes": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "product",
                    "variant"
                  ]
                },
                "displayable": {
                  "type": "boolean"
                },
                "facetable": {
                  "type": "string",
                  "enum": [
                    "auto",
                    "manual",
                    "off"
                  ]
                },
                "searchable": {
                  "type": "boolean"
                },
                "multi_valued": {
                  "type": "boolean"
                },
                "data_type": {
                  "type": "string",
                  "enum": [
                    "text",
                    "number"
                  ]
                }
              }
            }
          }
        }
      },
      "ProductConfiguration": {
        "type": "object",
        "properties": {
          "feed": {
            "type": "object",
            "properties": {
              "enable_feed_jobs": {
                "type": "boolean"
              }
            }
          },
          "index": {
            "type": "object",
            "properties": {
              "enable_index_jobs": {
                "type": "boolean"
              },
              "enable_auto_indexing": {
                "type": "boolean"
              },
              "search_unavailable_docs": {
                "type": "boolean"
              },
              "search_docs_drop_threshold": {
                "type": "number"
              }
            }
          },
          "variants": {
            "type": "object",
            "properties": {
              "sku_select": {
                "type": "string",
                "example": "on | off | transition-on | transition-off"
              },
              "enable_hero_sku_ranking": {
                "type": "boolean",
                "example": true
              },
              "enable_filtering": {
                "type": "boolean",
                "example": false
              },
              "ranking_attributes": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": [
                  "color",
                  "color_group",
                  "custom_attribute"
                ]
              },
              "use_unavailable_variant_as_hero": {
                "type": "boolean",
                "example": false
              },
              "grouping_attribute": {
                "type": "string",
                "example": "some_attribute"
              },
              "search_document_variants_limit": {
                "type": "number",
                "example": 5
              }
            }
          },
          "custom_attributes_defaults": {
            "type": "object",
            "properties": {
              "facetable": {
                "type": "string",
                "enum": [
                  "auto",
                  "manual",
                  "off"
                ]
              },
              "searchable": {
                "type": "boolean"
              }
            }
          },
          "custom_attributes": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "level": {
                  "type": "string",
                  "enum": [
                    "product",
                    "variant"
                  ]
                },
                "displayable": {
                  "type": "boolean"
                },
                "facetable": {
                  "type": "string",
                  "enum": [
                    "auto",
                    "manual",
                    "off"
                  ]
                },
                "searchable": {
                  "type": "boolean"
                },
                "multi_valued": {
                  "type": "boolean"
                },
                "data_type": {
                  "type": "string",
                  "enum": [
                    "text",
                    "number"
                  ]
                }
              }
            }
          },
          "autosuggest": {
            "type": "object",
            "properties": {
              "product_attributes": {
                "type": "object",
                "properties": {
                  "categories": {
                    "type": "string",
                    "example": "leaf_only | off"
                  },
                  "other_attributes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "example": [
                      "color",
                      "title",
                      "custom_attribute"
                    ]
                  }
                }
              },
              "minimum_character_count": {
                "type": "number",
                "example": 4
              },
              "word_count_limit": {
                "type": "number",
                "example": 5
              },
              "product_autosuggest": {
                "type": "boolean"
              },
              "attibute_autosuggest": {
                "type": "boolean"
              },
              "attribute_type": {
                "type": "string",
                "example": "category"
              },
              "attribute_autosuggest_limit": {
                "type": "number",
                "example": 3
              }
            }
          },
          "core_attribute_searchability": {
            "type": "object",
            "properties": {
              "category_names": {
                "type": "boolean"
              },
              "category_ids": {
                "type": "boolean"
              },
              "product_ids": {
                "type": "boolean"
              },
              "variant_ids": {
                "type": "boolean"
              }
            }
          },
          "reserved_attribute_searchability": {
            "type": "object",
            "properties": {
              "title": {
                "type": "boolean"
              },
              "brand": {
                "type": "boolean"
              },
              "description": {
                "type": "boolean"
              },
              "gender": {
                "type": "boolean"
              },
              "item_no": {
                "type": "boolean"
              },
              "model_no": {
                "type": "boolean"
              },
              "suite_info": {
                "type": "boolean"
              },
              "store_id": {
                "type": "boolean"
              },
              "catalog_code": {
                "type": "boolean"
              },
              "keywords": {
                "type": "boolean"
              },
              "size": {
                "type": "boolean"
              },
              "height": {
                "type": "boolean"
              },
              "width": {
                "type": "boolean"
              },
              "weight": {
                "type": "boolean"
              },
              "capacity": {
                "type": "boolean"
              },
              "reviews": {
                "type": "boolean"
              },
              "price": {
                "type": "boolean"
              },
              "sale_price": {
                "type": "boolean"
              },
              "color": {
                "type": "boolean"
              },
              "color_group": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "class": {
            "type": "string",
            "enum": [
              "error",
              "warning"
            ]
          }
        }
      },
      "404Response": {
        "description": "Not Found",
        "type": "object",
        "properties": {
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "412Response": {
        "description": "Precondition Failed",
        "type": "object",
        "properties": {
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "429Response": {
        "description": "Too Many Requests",
        "type": "object",
        "properties": {
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "500Response": {
        "description": "Internal Server Error",
        "type": "object",
        "properties": {
          "details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API Key"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```