<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.spiffystores.com.au/kb/index.php?action=history&amp;feed=atom&amp;title=API_Blog</id>
	<title>API Blog - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.spiffystores.com.au/kb/index.php?action=history&amp;feed=atom&amp;title=API_Blog"/>
	<link rel="alternate" type="text/html" href="https://www.spiffystores.com.au/kb/index.php?title=API_Blog&amp;action=history"/>
	<updated>2026-06-09T18:24:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://www.spiffystores.com.au/kb/index.php?title=API_Blog&amp;diff=7215&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;In addition to an online storefront, a Spiffy Store comes with a built-in blogging engine, allowing a store to have one or more blogs.  Store owners are encouraged to use blog...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.spiffystores.com.au/kb/index.php?title=API_Blog&amp;diff=7215&amp;oldid=prev"/>
		<updated>2018-05-24T01:25:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In addition to an online storefront, a Spiffy Store comes with a built-in blogging engine, allowing a store to have one or more blogs.  Store owners are encouraged to use blog...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In addition to an online storefront, a Spiffy Store comes with a built-in blogging engine, allowing a store to have one or more blogs.&lt;br /&gt;
&lt;br /&gt;
Store owners are encouraged to use blogs to:&lt;br /&gt;
&lt;br /&gt;
* Make announcements&lt;br /&gt;
* Talk about their products in more detail&lt;br /&gt;
* Show off their expertise&lt;br /&gt;
* Connect with their customers&lt;br /&gt;
* Boost their store&amp;#039;s search engine rankings&lt;br /&gt;
&lt;br /&gt;
Spiffy Stores blogs are like most other blogs in that they are a content management system for articles posted in reverse chronological order. An Atom feed is automatically generated for each blog, allowing for syndication. The search functionality built into every shop also searches the text in blog articles.&lt;br /&gt;
&lt;br /&gt;
Blogs are meant to be used as a type of magazine or newsletter for the store, with content that changes over time. If your store needs a static page, such as an &amp;quot;About Us&amp;quot; page, we recommend that you use a Page instead.&lt;br /&gt;
&lt;br /&gt;
== Blog Properties ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;reference&amp;quot;&lt;br /&gt;
!id&lt;br /&gt;
|&amp;lt;pre&amp;gt;{ &amp;quot;id&amp;quot; : 113 }&amp;lt;/pre&amp;gt;&lt;br /&gt;
A unique numeric identifier for the blog.&lt;br /&gt;
|-&lt;br /&gt;
!title&lt;br /&gt;
|&amp;lt;pre&amp;gt;{ &amp;quot;title&amp;quot;: &amp;quot;Latest News&amp;quot; }&amp;lt;/pre&amp;gt;&lt;br /&gt;
The title of the blog.&lt;br /&gt;
|-&lt;br /&gt;
!handle&lt;br /&gt;
|&amp;lt;pre&amp;gt;{ &amp;quot;handle&amp;quot;: &amp;quot;latest-news&amp;quot; }&amp;lt;/pre&amp;gt;&lt;br /&gt;
A unique, human-friendly string for the blog, generated automatically from its title. In online store themes, the Liquid templating language refers to a blog by its handle.&lt;br /&gt;
|-&lt;br /&gt;
!body&lt;br /&gt;
|&amp;lt;pre&amp;gt;{ &amp;quot;body&amp;quot;: &amp;quot;&amp;quot; }&amp;lt;/pre&amp;gt;&lt;br /&gt;
Not currently used.&lt;br /&gt;
|-&lt;br /&gt;
!body_html&lt;br /&gt;
|&amp;lt;pre&amp;gt;{ &amp;quot;body_html&amp;quot;: &amp;quot;&amp;quot; }&amp;lt;/pre&amp;gt;&lt;br /&gt;
Not currently used.&lt;br /&gt;
|-&lt;br /&gt;
!created_at&lt;br /&gt;
|&amp;lt;pre&amp;gt;{ &amp;quot;created_at&amp;quot;: &amp;quot;2008-07-15T20:00:00-04:00&amp;quot; }&amp;lt;/pre&amp;gt;&lt;br /&gt;
The date and time (ISO 8601 format) when the blog was created.&lt;br /&gt;
|-&lt;br /&gt;
!updated_at&lt;br /&gt;
|&amp;lt;pre&amp;gt;{ &amp;quot;updated_at&amp;quot;: &amp;quot;2008-07-16T20:00:00-04:00&amp;quot; }&amp;lt;/pre&amp;gt;&lt;br /&gt;
The date and time (ISO 8601 format) when the blog was last updated.&lt;br /&gt;
|-&lt;br /&gt;
!published&lt;br /&gt;
|&amp;lt;pre&amp;gt;{ &amp;quot;published&amp;quot; : true }&amp;lt;/pre&amp;gt;&lt;br /&gt;
Indicates whether the blog is published and visible to customers.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Endpoints ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;GET /api/blogs.json&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Retrieve a list of all blogs.&lt;br /&gt;
&lt;br /&gt;
==== Optional Parameters ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;reference&amp;quot;&lt;br /&gt;
!limit&lt;br /&gt;
|Number of results returned. The default is 30, with a maximum of 50 in a single request.&lt;br /&gt;
|-&lt;br /&gt;
!page&lt;br /&gt;
|The number of the page to return. The number of results per page is set by the &amp;lt;code&amp;gt;limit&amp;lt;/code&amp;gt; parameter. If more results are required, then submit the request again, increasing the page number each time.&lt;br /&gt;
|-&lt;br /&gt;
!since_id&lt;br /&gt;
|Limit the results to only include objects which have an id greater than the given value.&lt;br /&gt;
|-&lt;br /&gt;
!title&lt;br /&gt;
|Limit the results to only include blogs with the given title.&lt;br /&gt;
|-&lt;br /&gt;
!handle&lt;br /&gt;
|Limit the results to only include blogs with the given handle.&lt;br /&gt;
|-&lt;br /&gt;
!published_status&lt;br /&gt;
|Limit the results to only include blogs with the given published status (&amp;#039;published&amp;#039; or &amp;#039;unpublished&amp;#039;).&lt;br /&gt;
|-&lt;br /&gt;
!created_at_min&lt;br /&gt;
|Return only the blogs created after the given date and time. Use the format &amp;quot;2014-12-31 12:00&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
!created_at_max&lt;br /&gt;
|Return only the blogs created before the given date and time. Use the format &amp;quot;2014-12-31 12:00&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
!updated_at_min&lt;br /&gt;
|Return only the blogs updated after the given date and time. Use the format &amp;quot;2014-12-31 12:00&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
!updated_at_max&lt;br /&gt;
|Return only the blogs updated before the given date and time. Use the format &amp;quot;2014-12-31 12:00&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
!fields&lt;br /&gt;
|A comma-separated list of fields to return in the response.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Example Request and Response ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GET /api/blogs.json&lt;br /&gt;
&lt;br /&gt;
HTTP/1.1 200 OK&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;blogs&amp;quot;: [&lt;br /&gt;
    {&lt;br /&gt;
      &amp;quot;id&amp;quot;: 248,&lt;br /&gt;
      &amp;quot;title&amp;quot;: &amp;quot;Latest News&amp;quot;,&lt;br /&gt;
      &amp;quot;handle&amp;quot;: &amp;quot;latest-news&amp;quot;,&lt;br /&gt;
      &amp;quot;body&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
      &amp;quot;body_html&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
      &amp;quot;created_at&amp;quot;: &amp;quot;2009-11-21T01:42:15.664+11:00&amp;quot;,&lt;br /&gt;
      &amp;quot;updated_at&amp;quot;: &amp;quot;2015-09-10T12:16:29.619+10:00&amp;quot;,&lt;br /&gt;
      &amp;quot;published&amp;quot;: true&lt;br /&gt;
    }, ...&lt;br /&gt;
  ]&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Examples using filters&lt;br /&gt;
&lt;br /&gt;
GET /api/blogs.json?fields=id,title&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;GET /api/blogs/count.json&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Return a count of the number of blogs.&lt;br /&gt;
&lt;br /&gt;
==== Optional Parameters ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;reference&amp;quot;&lt;br /&gt;
!since_id&lt;br /&gt;
|Limit the results to only include objects which have an id greater than the given value.&lt;br /&gt;
|-&lt;br /&gt;
!title&lt;br /&gt;
|Limit the results to only include blogs with the given title.&lt;br /&gt;
|-&lt;br /&gt;
!handle&lt;br /&gt;
|Limit the results to only include blogs with the given handle.&lt;br /&gt;
|-&lt;br /&gt;
!published_status&lt;br /&gt;
|Limit the results to only include blogs with the given published status (&amp;#039;published&amp;#039; or &amp;#039;unpublished&amp;#039;).&lt;br /&gt;
|-&lt;br /&gt;
!created_at_min&lt;br /&gt;
|Return only the blogs created after the given date and time. Use the format &amp;quot;2014-12-31 12:00&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
!created_at_max&lt;br /&gt;
|Return only the blogs created before the given date and time. Use the format &amp;quot;2014-12-31 12:00&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
!updated_at_min&lt;br /&gt;
|Return only the blogs updated after the given date and time. Use the format &amp;quot;2014-12-31 12:00&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
!updated_at_max&lt;br /&gt;
|Return only the blogs updated before the given date and time. Use the format &amp;quot;2014-12-31 12:00&amp;quot;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Example Request and Response ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GET /api/blogs/count.json&lt;br /&gt;
&lt;br /&gt;
HTTP/1.1 200 OK&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;count&amp;quot;: 3&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;GET /api/blogs/BLOG_ID.json&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Retrieves a single blog by ID.&lt;br /&gt;
&lt;br /&gt;
==== Optional Parameters ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;reference&amp;quot;&lt;br /&gt;
!fields&lt;br /&gt;
|A comma-separated list of fields to return in the response.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Example Request and Response ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GET /api/blogs/248.json&lt;br /&gt;
&lt;br /&gt;
HTTP/1.1 200 OK&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;blog&amp;quot;: {&lt;br /&gt;
    &amp;quot;id&amp;quot;: 248,&lt;br /&gt;
    &amp;quot;title&amp;quot;: &amp;quot;Latest News&amp;quot;,&lt;br /&gt;
    &amp;quot;handle&amp;quot;: &amp;quot;latest-news&amp;quot;,&lt;br /&gt;
    &amp;quot;body&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
    &amp;quot;body_html&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
    &amp;quot;created_at&amp;quot;: &amp;quot;2009-11-21T01:42:15.664+11:00&amp;quot;,&lt;br /&gt;
    &amp;quot;updated_at&amp;quot;: &amp;quot;2015-09-10T12:16:29.619+10:00&amp;quot;,&lt;br /&gt;
    &amp;quot;published&amp;quot;: true&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;GET /api/blogs/BLOG_ID/authors.json&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Retrieves all the authors that have contributed to the blog.&lt;br /&gt;
&lt;br /&gt;
==== Example Request and Response ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
GET /api/blogs/248/authors.json&lt;br /&gt;
&lt;br /&gt;
HTTP/1.1 200 OK&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;authors&amp;quot;: [&lt;br /&gt;
    &amp;quot;Bilbo Baggins&amp;quot;,&lt;br /&gt;
    &amp;quot;System Admin&amp;quot;&lt;br /&gt;
  ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;POST /api/blogs.json&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Add a blog to the store.&lt;br /&gt;
&lt;br /&gt;
==== Example Request and Response ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
POST /api/blogs.json&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;blog&amp;quot;: {&lt;br /&gt;
    &amp;quot;title&amp;quot;: &amp;quot;My Latest Product&amp;quot;,&lt;br /&gt;
    &amp;quot;published&amp;quot;: true&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
HTTP/1.1 201 Created&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;PUT /api/blogs/BLOG_ID.json&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Updates a blog.&lt;br /&gt;
&lt;br /&gt;
==== Example Request and Response ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PUT /api/blogs/248.json&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;blog&amp;quot;: {&lt;br /&gt;
    &amp;quot;id&amp;quot;: 248,&lt;br /&gt;
    &amp;quot;published&amp;quot;: false&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
HTTP/1.1 200 OK&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;code&amp;gt;DELETE /api/blogs/BLOG_ID.json&amp;lt;/code&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Deletes a blog and all of its articles from the store.&lt;br /&gt;
&lt;br /&gt;
==== Example Request and Response ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DELETE /api/blogs/248.json&lt;br /&gt;
&lt;br /&gt;
HTTP/1.1 200 OK&lt;br /&gt;
&lt;br /&gt;
{}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Further Reference ==&lt;br /&gt;
&lt;br /&gt;
* [[An Introduction to the Spiffy Stores API]]&lt;br /&gt;
* [[Creating Private API Keys]]&lt;br /&gt;
* [[Using the API]]&lt;br /&gt;
* [[API Reference]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>