Skip to main content
PUT
/
api
/
v1
/
blogs
/
:id.json
Update Blog
curl --request PUT \
  --url https://api.launchmystore.io/api/v1/blogs/:id.json \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "handle": "<string>",
  "commentable": "<string>",
  "template_suffix": "<string>",
  "metafields": [
    {}
  ]
}
'
{
  "success": true,
  "data": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt

Use this file to discover all available pages before exploring further.

Update Blog

Updates an existing blog. Only provided fields will be updated.

Request

curl -X PUT "https://api.launchmystore.io/api/v1/blogs/blog_abc123.json" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Latest News",
    "commentable": "yes"
  }'

Path Parameters

id
string
required
The unique blog ID to update

Body Parameters

All parameters are optional. Only provided fields will be updated.
title
string
The blog title
handle
string
URL-safe handle
commentable
string
Comment setting: no, moderate, yes
template_suffix
string
Custom template suffix (set to null to remove)
metafields
array
Metafields to add or update

Response

success
boolean
Whether the request succeeded
data
object
The updated blog object

Example Response

{
  "success": true,
  "data": {
    "id": "blog_abc123",
    "title": "Latest News",
    "handle": "news",
    "commentable": "yes",
    "articles_count": 24,
    "feedburner": null,
    "feedburner_location": null,
    "template_suffix": null,
    "tags": ["announcements", "product-updates", "tutorials"],
    "created_at": "2024-01-01T10:00:00Z",
    "updated_at": "2024-03-20T15:30:00Z"
  }
}

Notes

  • Changing the handle will break existing links to the blog
  • Article URLs will be updated to use the new blog handle

Error Codes

CodeDescription
UNAUTHORIZEDInvalid or missing access token
FORBIDDENApp doesn’t have write_content scope
NOT_FOUNDBlog with the specified ID does not exist
VALIDATION_ERRORInvalid request body (see error details)
DUPLICATE_HANDLEA blog with this handle already exists