Create Gallery
POST
Create New Gallery
Add a new gallery entry to the system with image or video URL.
Required Permission:
Create Gallery
POST
/dashboard/galleries
Request Parameters
| Parameter | Type | Required | Validation | Description |
|---|---|---|---|---|
| gallery_category_id | Integer | Required | integer, exists | ID of the gallery category (must be active) |
| title | String | Required | string, max: 255, unique | Title of the gallery item (must be unique) |
| image | File | Conditional | image, max: 2048 | Image file (required for photo gallery category) |
| video_url | String | Conditional | url | Video URL (required for video gallery category) |
| position | Integer | Optional | integer, optional | Position of the gallery |
Response
201 CreatedStatus Code
HTTP status code (201)
Message
Gallery successfully created
Data
The newly created gallery record