Blogs

PATCH

Update Blog

Update an existing blog.

Required Permission: Edit Blog
PATCH /dashboard/blogs/{id}

Request Body

JSON

    

Request Parameters

Parameter Type Required Validation Description
blog_category_id Integer Required integer, exists ID of the blog category (must be active)
title String Required string, max: 255, unique Title of the blog (must be unique)
position Integer Optional integer Display order position
date Date Required date, Y-m-d Publication date
thumbnail_image File Optional image, max: 2048 Thumbnail photo file
banner_image File Optional image, max: 2048 Banner photo file
short_description String Required string Short description/summary
long_description String Required string Full description (HTML supported)
tag_id Array Required array Array of tag IDs
tag_id.* Integer Required integer, exists ID of the tag (must be active)
seo Array Optional array SEO meta title
seo.meta_title String Optional string, max: 255 SEO meta title
seo.meta_description String Optional string, max: 255 SEO meta description
seo.meta_keywords String Optional string, max: 255 SEO meta keywords

Response

200 OK
Status Code
HTTP status code (200)
Message
Blog successfully updated
Data
Updated blog details