---
title: "Update a blog"
method: PATCH
path: "/v1/accounts/{accountId}/blogs/{blogId}"
tags: ["Blogs"]
---

# Update a blog

`PATCH /v1/accounts/{accountId}/blogs/{blogId}`

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`). Accounts on platforms
without blogs support return 400; a blogs-capable platform that lacks
this specific operation returns 405.

## Path parameters

- `accountId` string, required
- `blogId` string, required

## Request body

- object — At least one field is required.
  - `title` string
  - `handle` string — URL slug. Changing it changes the blog URL on the store.

## Response `200`

Blog updated

- object
  - `platform` 'shopify'
  - `blog` Blog — A blog container on the connected platform. All content lives on the platform; Zernio proxies it and stores nothing.
    - `id` string — Platform-native blog id (numeric string for Shopify).
    - `platform` 'shopify'
    - `title` string
    - `handle` string — URL slug of the blog.

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — The platform rejected the request (code insufficient_permissions); reconnect the Shopify account to restore access.
- `404` — Account not found or not accessible (code account_not_found), or blog not found (code blog_not_found).
- `405` — Platform does not support updating a blog.
- `429` — Rate limited, either by Zernio or by Shopify. Retry later.

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/revisions/15e893e69e8c/schema)
