Skip to main content
PATCH
/
v1
/
workspace
/
website
/
{website_id}
/
blogs
/
{blog_id}
Update a blog
curl --request PATCH \
  --url https://apidev.lindo.ai/v1/workspace/website/{website_id}/blogs/{blog_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Getting Started Guide",
  "path": "/blog/getting-started",
  "seo": {
    "title": "Getting Started",
    "description": "Learn how to get started"
  },
  "blog_settings": {
    "featured": true,
    "category": "tutorials"
  },
  "data": {
    "content": [],
    "author": "John Doe"
  },
  "language": "en"
}
'
{
  "success": true,
  "result": {
    "message": "Blog updated successfully",
    "blog_id": "blog_abc123",
    "name": "Getting Started Guide",
    "path": "/blog/getting-started",
    "language": "en"
  }
}

Authorizations

Authorization
string
header
required

Enter your API key (starts with lindo_sk_)

Path Parameters

website_id
string
required

Unique identifier of the website

Example:

"ws_abc123"

blog_id
string
required

Unique identifier of the blog

Example:

"blog_abc123"

Body

application/json
name
string | null

Name of the blog post

Example:

"Getting Started Guide"

path
string | null

URL path of the blog post

Example:

"/blog/getting-started"

seo
object

SEO metadata for the blog post

Example:
{
"title": "Getting Started",
"description": "Learn how to get started"
}
blog_settings
object

Blog-specific settings configuration

Example:
{ "featured": true, "category": "tutorials" }
data
object

Blog data and content

Example:
{ "content": [], "author": "John Doe" }
language
string | null

Language code (e.g., 'en', 'es', 'fr'). Converted to display format for storage.

Example:

"en"

Response

Blog updated successfully

success
enum<boolean>
required

Indicates the operation was successful

Available options:
true,
false
Example:

true

result
object
required