PUT
/
styles
/
update
/
{id}
Update
curl --request PUT \
  --url https://api.buybase.ai/styles/update/{id} \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "text": "<string>"
}'
{
  "success": true,
  "style": {
    "id": "style_12345",
    "text": "Updated minimalist style with focus on earth tones, sustainable fabrics, and versatile pieces that can be dressed up or down.",
    "profile_id": "prof_67890",
    "updated_at": "2023-09-16T10:15:22Z"
  },
  "id": "style_12345",
  "code": "STYLE_UPDATED"
}

Headers

authorization
string
required
Your API key for authorization.

Path Parameters

id
string
required
The ID of the style to update.

Body Parameters

text
string
required
New descriptive text for the style profile. This should include style preferences, colors, patterns, or any other fashion attributes that define the style.

Response

success
boolean
Indicates whether the operation was successful.
style
object
The updated style object containing:
code
string
A code indicating the result of the operation. Possible values:
  • STYLE_UPDATED: Style updated successfully
  • STYLE_PROFILE_UPDATE_FAILED: Failed to update style profile
error
string
Error message if the request fails.
Updating a style will regenerate the style embedding using the new text, which may affect how products are matched to this style.
{
  "success": true,
  "style": {
    "id": "style_12345",
    "text": "Updated minimalist style with focus on earth tones, sustainable fabrics, and versatile pieces that can be dressed up or down.",
    "profile_id": "prof_67890",
    "updated_at": "2023-09-16T10:15:22Z"
  },
  "id": "style_12345",
  "code": "STYLE_UPDATED"
}