Delete a widget theme
delete
/v1/widget/presets/{presetId}Deletes a saved theme. A storefront whose embed names it as themeId
falls back to the theme changed most recently, then to Stylor's
defaults.
This cannot be undone.
Private keyapi.v1.widget.presets.deleteNo demo
Path parameters
1presetIdstring (uuid)required
The theme's id.
Response
200The theme was deleted.
deletedintegerrequired
Always 1.
Errors
20Every error is JSON with a single error string unless noted. Match on the status code; the message is for humans.
404
Widget preset not found: <presetId>No theme with this id belongs to the key's organization.
curl -X DELETE "https://stylor.ai/api/v1/widget/presets/YOUR_PRESET_ID" \
-H "Authorization: Bearer $STYLOR_API_KEY"Response · 200
{
"deleted": 1
}