Update Gallery
POST
Update Gallery by ID
Update an existing gallery item. Use _method=PATCH for form-data requests with images.
Required Permission:
Edit Gallery
POST
/dashboard/galleries/{id}
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 and not exists previous image) |
| video_url | String | Conditional | url | Video URL (required for video gallery category) |
| position | Integer | Optional | integer, optional | Position of the gallery |
Response
200 OKStatus Code
HTTP status code (200)
Message
Gallery successfully updated
Data
The updated gallery record