Create a blog article
Changed onCreates an article on the blog. Publishing behavior:
- WordPress, Wix and Webflow default to a draft when both publishing fields are omitted.
- isPublished: false keeps the article as a draft and takes priority over a future publishDate.
- A future publishDate schedules publication natively on the platform; the platform publishes it at that time with no Zernio queue involved.
- isPublished: true publishes immediately when there is no future publishDate.
- seo.title / seo.description map to Shopify's global title_tag and description_tag metafields (the fields Shopify themes read for the page title and meta description), and on Wix to the post's SEO title and meta description. WordPress and Webflow reject seo; SEO plugin and custom-field writes are not supported.
- Webflow has no scheduling API: a future publishDate returns 400 unless isPublished: false keeps a draft. Fields map to the collection's own fields by type and slug (the body to its rich text field, excerpt to a summary field, image to an image field, tags and author to tag and author reference fields); sending a field the collection does not have returns 400, as does a collection that requires a field the Blogs API cannot fill.
- Wix stores rich content: bodyHtml is converted on write (each top-level HTML element must fit 30,000 characters), and images in the body are imported into the site's Media Manager.
Supported on Shopify (shopify), WordPress (wordpress), Wix (wix) and Webflow (webflow). WordPress native scheduling depends on the site's scheduler/WP-Cron.
Request
- Base URL: https://zernio.com/api
- URL: https://zernio.com/api/v1/accounts/{accountId}/blogs/{blogId}/articles
- Auth: HTTP bearer
Path parameters
Connected Shopify, WordPress, Wix or Webflow account id.
Platform-native blog/site id returned by the list operation.
Request body
Response
Article created
Changes
- warning
added the new
webflowenum value to the/response property for the response status - warning
added the new
webflowenum value to theresponse property for the response status - info
added the new optional request property
- warning
- warning
changed the pattern of the
pathrequest parameterblogIdfrom^\d+$to^[A-Za-z0-9_-]{1,64}$ - warning
added the new
wixenum value to the/response property for the response status - warning
added the new
wixenum value to theresponse property for the response status
- warning