Themes
The store's themes: the published one shoppers see, and others being prepared. Publishing a theme makes it live straight away.
Endpoints#
- GET
/themes.jsonList themes - GET
/themes/{id}.jsonGet a theme - POST
/themes.jsonCreate a theme - PUT
/themes/{id}.jsonUpdate a theme - DELETE
/themes/{id}.jsonDelete a theme
Paths are relative to https://store.weftgrid.com/api/admin/2026-10. The examples read the token from $STORELOOM_TOKEN and ids from variables like $ORDER_ID.
The theme object#
What the endpoints below return for one theme, and the payload of the themes/create, themes/update, themes/publish webhooks.
{
"id": "cm2theme0001",
"name": "Holiday edit",
"role": "unpublished",
"preset": "loom",
"created_at": "2026-10-20T09:12:00.000Z",
"updated_at": "2026-10-24T16:40:00.000Z",
"previewable": true,
"processing": false
}List themes#
/themes.jsonread_themesEvery theme in the store: the live one (role main) first, then the others.
| Parameter | Description |
|---|---|
role | main or unpublished. |
fields | Comma-separated fields to return. |
curl "https://store.weftgrid.com/api/admin/2026-10/themes.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"themes": [
{
"id": "cm2theme0001",
"name": "Holiday edit",
"role": "unpublished",
"preset": "loom",
"created_at": "2026-10-20T09:12:00.000Z",
"updated_at": "2026-10-24T16:40:00.000Z",
"previewable": true,
"processing": false
}
]
}Get a theme#
/themes/{id}.jsonread_themescurl "https://store.weftgrid.com/api/admin/2026-10/themes/$THEME_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"theme": {
"id": "cm2theme0001",
"name": "Holiday edit",
"role": "unpublished",
"preset": "loom",
"created_at": "2026-10-20T09:12:00.000Z",
"updated_at": "2026-10-24T16:40:00.000Z",
"previewable": true,
"processing": false
}
}Create a theme#
/themes.jsonwrite_themesAdds a theme from the theme library (preset; loom when left out), unpublished unless role is main, which publishes it straight away. The store's plan limits how many themes it can have. Fires themes/create (and themes/publish).
{
"theme": {
"name": "Holiday edit",
"preset": "loom",
"role": "unpublished"
}
}curl -X POST "https://store.weftgrid.com/api/admin/2026-10/themes.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"theme": {
"name": "Holiday edit",
"preset": "loom",
"role": "unpublished"
}
}'Example responseShowHide
{
"theme": {
"id": "cm2theme0001",
"name": "Holiday edit",
"role": "unpublished",
"preset": "loom",
"created_at": "2026-10-20T09:12:00.000Z",
"updated_at": "2026-10-24T16:40:00.000Z",
"previewable": true,
"processing": false
}
}Update a theme#
/themes/{id}.jsonwrite_themesRenames a theme, or publishes it with "role": "main" (the live theme becomes unpublished). To unpublish the live theme, publish another one. Fires themes/update or themes/publish.
{
"theme": {
"name": "Holiday edit 2026",
"role": "main"
}
}curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/themes/$THEME_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"theme": {
"name": "Holiday edit 2026",
"role": "main"
}
}'Example responseShowHide
{
"theme": {
"id": "cm2theme0001",
"name": "Holiday edit 2026",
"role": "main",
"preset": "loom",
"created_at": "2026-10-20T09:12:00.000Z",
"updated_at": "2026-10-24T16:40:00.000Z",
"previewable": true,
"processing": false
}
}Delete a theme#
/themes/{id}.jsonwrite_themesDeletes an unpublished theme and its files. The live theme can't be deleted. Fires themes/delete.
curl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/themes/$THEME_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{
"theme": {
"id": "cm2theme0001",
"name": "Holiday edit",
"role": "unpublished",
"preset": "loom",
"created_at": "2026-10-20T09:12:00.000Z",
"updated_at": "2026-10-24T16:40:00.000Z",
"previewable": true,
"processing": false
}
}