Blogs
POST
Create Blog
Create a new blog.
Required Permission:
Create Blog
POST
/dashboard/blogs
Request Body
JSONRequest 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 | Required | image, max: 2048 | Thumbnail photo file |
| banner_image | File | Required | image, max: 2048 | Banner photo file |
| short_description | String | Required | string | Short description/summary |
| long_description | String | Required | string | Full description (HTML supported) |
| meta_title | String | Optional | string, max: 255 | SEO meta title |
| meta_description | String | Optional | string, max: 255 | SEO meta description |
| meta_keywords | String | Optional | string, max: 255 | SEO meta keywords |
| tag_id | Array | Required | array | Array of tag IDs |
| tag_id.* | Integer | Required | integer, exists | ID of the tag (must be active) |
Response
200 OKStatus Code
HTTP status code (200)
Message
Blog successfully created
Data
Created blog details