Get a blog
Fetches a single blog. Use the platform-native blogId returned by
GET /v1/accounts/{accountId}/blogs: a Shopify numeric blog id, the
WordPress.com numeric site id, or 1 for a self-hosted WordPress site.
The self-hosted id is scoped to its connected account.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Connected Shopify or WordPress account id.
Platform-native numeric blog/site id returned by the list operation.
^\d+$Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.blogs.getBlog({ path: { accountId: 'account_abc123', blogId: 'blog_abc123', },});console.log(data);{ "platform": "shopify", "blog": { "id": "string", "platform": "shopify", "title": "string", "handle": "string" }}Create a blog
Creates a blog on the connected store. The platform generates the URL `handle` from the title when omitted. Supported on Shopify (platform `shopify`). A WordPress connection is its existing site, so WordPress returns 405 for blog creation.
Update a blog
Partial-updates a blog. Send any subset of `title` and `handle`; at least one field is required (an empty body returns 400). Supported on Shopify (platform `shopify`). WordPress site settings are not writable through this API, so WordPress returns 405.