Blogs
Blogs of the online store.
Endpoints#
- GET
/blogs.jsonList blogs - GET
/blogs/count.jsonCount blogs - GET
/blogs/{id}.jsonGet a blog - POST
/blogs.jsonCreate a blog - PUT
/blogs/{id}.jsonUpdate a blog - DELETE
/blogs/{id}.jsonDelete a blog
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 blog object#
What the endpoints below return for one blog.
blog
{
"id": "cm2blog0001",
"title": "Journal",
"handle": "journal",
"articles_count": 3,
"created_at": "2026-09-01T09:00:00.000Z",
"updated_at": "2026-09-01T09:00:00.000Z"
}List blogs#
GET
/blogs.jsonread_contentQuery parameters
| Parameter | Description |
|---|---|
limit | Results per page, 1–250 (default 50). |
page_info | Cursor from the Link header for the next or previous page. |
since_id | Only results after this id. |
ids | Comma-separated ids. |
created_at_min / created_at_max | ISO 8601 bounds on creation time. |
updated_at_min / updated_at_max | ISO 8601 bounds on last change; use for incremental sync. |
fields | Comma-separated fields to return, e.g. id,title,updated_at. |
handle | Comma-separated handles. |
Request
curl "https://store.weftgrid.com/api/admin/2026-10/blogs.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "blogs": [{ "id": "…", "title": "Journal", "handle": "journal", "articles_count": 3, … }] }Count blogs#
GET
/blogs/count.jsonread_contentRequest
curl "https://store.weftgrid.com/api/admin/2026-10/blogs/count.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "count": 1 }Get a blog#
GET
/blogs/{id}.jsonread_contentRequest
curl "https://store.weftgrid.com/api/admin/2026-10/blogs/$BLOG_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{ "blog": { "id": "cm2blog0001", "title": "Journal", "handle": "journal", "articles_count": 3, "created_at": "2026-09-01T09:00:00.000Z", "updated_at": "2026-09-01T09:00:00.000Z" } }Create a blog#
POST
/blogs.jsonwrite_contentThe handle is made from the title when left out, and made unique. The blog is shown at /blogs/<handle>.
Request body
{ "blog": { "title": "Recipes" } }Request with curl
curl -X POST "https://store.weftgrid.com/api/admin/2026-10/blogs.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "blog": { "title": "Recipes" } }'Example responseShowHide
{ "blog": { "id": "cm2blog0001", "title": "Journal", "handle": "journal", "articles_count": 3, "created_at": "2026-09-01T09:00:00.000Z", "updated_at": "2026-09-01T09:00:00.000Z" } }Update a blog#
PUT
/blogs/{id}.jsonwrite_contentRenaming keeps the handle unless you send a new one.
Request body
{ "blog": { "title": "The journal" } }Request with curl
curl -X PUT "https://store.weftgrid.com/api/admin/2026-10/blogs/$BLOG_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "blog": { "title": "The journal" } }'Example responseShowHide
{ "blog": { "id": "cm2blog0001", "title": "Journal", "handle": "journal", "articles_count": 3, "created_at": "2026-09-01T09:00:00.000Z", "updated_at": "2026-09-01T09:00:00.000Z" } }Delete a blog#
DELETE
/blogs/{id}.jsonwrite_contentDeletes the blog and all of its articles.
Request
curl -X DELETE "https://store.weftgrid.com/api/admin/2026-10/blogs/$BLOG_ID.json" \
-H "X-Storeloom-Access-Token: $STORELOOM_TOKEN"Example responseShowHide
{}