Skip to main content
Attributes · Revision #2

Update Attribute Endpoint

Update Attribute Endpoint

Structure

Attribute
Name
Type
Description
Required
name string The name of the attribute (e.g., Small or Red) No
display_name string The display name of the attribute No
reference string The reference of the attribute No
image object The Image of the attribute No
tags array An array of Tag objects No
Image
Name
Type
Description
Required
src string The source url of the image Yes
Tag
Name
Type
Description
Required
name string The name of the tag (e.g., Small or Red) Yes
group object The tag group, see Tag Group Yes
Tag Group
Name
Type
Description
Required
name string The name of the tag group (e.g., Size or Colour) Yes

Example Request

PUT /api/attribute-groups/{id|name}/attributes/{id|name}
{
    "name": "Updated Small",
    "display_name": "Updated Small"
}

Example Response

{
    "attribute": {
        "id": 1
    }
}