blogs

update a blog post by a superadmin

patch/blogs/edit/{blogId}

Path parameters

blogIdstring uuid required

Request body

titlestring
contentstring
categorystring
image_urlstring

Example request

{
  "title": "Updated Blog Post",
  "content": "This is the content of the updated blog post",
  "category": "Space",
  "image_url": "http://solarsystem.com"
}

Response

Blog post updated successfully

statusstring
status_codeinteger
messagestring

Example response

{
  "status": "success",
  "status_code": 200,
  "message": "Blog post updated successfully.",
  "data": {
    "title": "Updated Blog Post",
    "content": "This is the content of the updated blog post",
    "image_url": "http://solarsystem.com",
    "category": "space"
  }
}

Changes

No recorded changes to this endpoint across all 15 revisions of this API.