blog

Update Blog

Partially update a blog. Only fields included in the request body change; omitted fields are left untouched.

NOTE: slug cannot be changed here. It is not a field on UpdateBlogPayload and is stripped defensively in the service, because the slug is the blog's public URL — changing it drops SEO ranking and breaks inbound links. Rename a slug only via a deliberate direct DB change.

patch/v1/blog/{blog_id}/update

Request

  • Base URL
    https://api.linktodm.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Path parameters

blog_idinteger required

Headers

x-admin-api-keystring nullable

Request body

titlestring nullable
meta_descriptionstring nullable
language_codestring nullable
content_htmlstring nullable
content_markdownstring nullable
hero_image_urlstring nullable
written_bystring nullable
is_activeboolean nullable
is_draftboolean nullable
related_blog_idsinteger[] nullable

Example request

{
  "content_html": "<p>Updated content</p>",
  "content_markdown": "Updated content",
  "hero_image_url": "https://example.com/hero.png",
  "is_active": true,
  "is_draft": false,
  "language_code": "en",
  "meta_description": "Updated meta description",
  "related_blog_ids": [
    1,
    2
  ],
  "title": "Updated blog title",
  "written_by": "Author Name"
}

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.