Skip to main content
POST
/
attributes
/
{key}
/
rename
curl -X POST "https://hub.banditshq.com/api/v1/attributes/color/rename" \
  -H "Authorization: Bearer lasso_..." \
  -H "Content-Type: application/json" \
  -d '{"new_key": "product_color"}'
{
  "success": true,
  "old_key": "color",
  "new_key": "product_color",
  "attribute": { "key": "product_color", "label": "Color", "type": "enum", ... },
  "results": { ... }
}
Renames the attribute key everywhere it is referenced: product schemas, catalog products, feeds, mappings, and the dictionary.
key
string
required
Current attribute key.
new_key
string
required
New key (must start with a letter; letters, digits, underscores only).
curl -X POST "https://hub.banditshq.com/api/v1/attributes/color/rename" \
  -H "Authorization: Bearer lasso_..." \
  -H "Content-Type: application/json" \
  -d '{"new_key": "product_color"}'
{
  "success": true,
  "old_key": "color",
  "new_key": "product_color",
  "attribute": { "key": "product_color", "label": "Color", "type": "enum", ... },
  "results": { ... }
}