Admin Catalog: Attributes
Update an attribute
Updates an attribute. The code field cannot be changed (returns 422 if a different code is supplied). Changing type is refused when product attribute values exist.
put/catalog/attributes/{id}
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Example:50
Attribute ID.
Request body
Example request
{
"code": "material",
"admin_name": "Material (updated)",
"type": "select",
"is_filterable": true,
"translations": {
"en": {
"name": "Material (updated)"
},
"fr": {
"name": "Matière (mis à jour)"
}
}
}Response
Attribute updated. Returns the full attribute detail.
Changes
No recorded changes to this operation across all 8 revisions of this API.