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.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Connected Shopify SocialAccount id.
Platform-native numeric blog id. Non-numeric values return 400.
^\d+$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
At least one field is required.
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.updateBlog({ path: { accountId: 'account_abc123', blogId: 'blog_abc123', }, body: { title: 'Example', handle: 'string', },});console.log(data);{ "platform": "shopify", "blog": { "id": "string", "platform": "shopify", "title": "string", "handle": "string" }}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.
Delete a blog
Deletes the blog AND every article in it. The delete happens on the platform and is permanent; Zernio stores nothing to restore it from. Supported on Shopify (platform `shopify`). Disconnect a WordPress account instead of deleting its site; WordPress returns 405 here.