v1

latestOpenAPI 3.0.3Apache 2.02026-07-1710047196.1 KB
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"
  }
}