blogs
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). Accounts on platforms
without blogs support return 400; a blogs-capable platform that lacks
this specific operation returns 405.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
accountIdstring
Connected Shopify SocialAccount id.
blogIdstring
Platform-native numeric blog id. Non-numeric values return 400.
Match
^\d+$Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.blogs.deleteBlog({ path: { accountId: 'account_abc123', blogId: 'blog_abc123', },});console.log(data);Empty
{
"error": "string",
"type": "invalid_request_error",
"code": "string",
"param": "string",
"platform": "string",
"platformError": {},
"details": {}
}{
"error": "Unauthorized"
}Empty
Empty
Empty
Empty