---
title: "Update a blog"
method: PATCH
path: "/v1/workspace/website/{website_id}/blogs/{blog_id}"
tags: ["Blog Management"]
---

# Update a blog

`PATCH /v1/workspace/website/{website_id}/blogs/{blog_id}`

## Request

- Base URL: `https://api.lindo.ai`
- URL: `https://api.lindo.ai/v1/workspace/website/{website_id}/blogs/{blog_id}`
- Auth: HTTP bearer

Updates a blog using PATCH semantics. Accepts lang_code (e.g., 'en', 'es') for language and converts to display format for storage. Undefined fields are not modified, null clears the field.

## Path parameters

- `website_id` string, required: Unique identifier of the website
- `blog_id` string, required: Unique identifier of the blog

## Request body

- BlogUpdateRequest
  - `name` string, nullable: Name of the blog post
  - `path` string, nullable: URL path of the blog post
  - `seo` object, nullable: SEO metadata for the blog post
  - `blog_settings` object, nullable: Blog-specific settings configuration
  - `data` object, nullable: Blog data and content
  - `language` string, nullable: Language code (e.g., 'en', 'es', 'fr'). Converted to display format for storage.

## Response `200`

Blog updated successfully

- BlogUpdateResponse
  - `success` true, required: Indicates the operation was successful
  - `result` BlogUpdateResult, required
    - `message` string, required: Success message
    - `blog_id` string, required: Unique identifier of the updated blog
    - `name` string: Updated name of the blog post
    - `path` string: Updated URL path of the blog post
    - `language` string, nullable: Language code of the blog

## Other responses

- `400`: Bad request - validation error or invalid language code
- `401`: Unauthorized - invalid or missing API key
- `404`: Blog not found
- `500`: Internal server error

---

[API](https://skmtc.dev/lindo/apis/lindo-unified-api.md) · [All operations](https://skmtc.dev/lindo/apis/lindo-unified-api/llms.txt) · [OpenAPI document](https://skmtc.dev/lindo/apis/lindo-unified-api/revisions/2672f34525a4?raw)
