Skip to main content

Monthly Event Page

This section covers the API endpoints for managing monthly event pages in the admin panel.

Get Monthly Event

GET /v1/admin/pages/custom/monthly-events

Retrieve details of the monthly event page.

Response

{
"success": true,
"message": "تم جلب البيانات بنجاح.",
"data": {
"title": "الثراء",
"description": "أنوي الثراء بأيسر الطرق وأفضل الاحتمالات",
"key": "monthly-events",
"meta": {
"movie_description": "@NetflixMENA",
"movie_title": "Get Smart With Money"
},
"movie_poster": "http://192.168.0.139:8080/storage/28582/بوستر.jpg",
"note_file": "http://192.168.0.139:8080/storage/28628/مفكرة-الثراء.pdf",
"backgrounds": [
"http://192.168.0.139:8080/storage/6294/Fi6yI87UAAA6NKH.jpeg"
]
},
"status_code": 200
}

Update Monthly Event

PATCH /v1/admin/pages/custom/monthly-events

Update the monthly event page content.

Request Body

ParameterTypeDescription
titlestringOptional. Page title (3-255 characters)
descriptionstringOptional. Page description (min 3 characters)
metaobjectOptional. Additional metadata
meta.movie_titlestringOptional. Movie title (3-255 characters)
meta.movie_descriptionstringOptional. Movie description (min 3 characters)
movie_posterfileOptional. Image file (jpeg, png, jpg). Max size: 1024KB
backgroundsarrayOptional. Array of background images (max 4 images)
backgrounds.*fileImage file (jpeg, png, jpg). Max size: 1024KB
note_filefileOptional. PDF file. Max size: 20MB
delete_note_filebooleanOptional. Set to true to remove the existing note file

Response

{
"success": true,
"message": "تم تحديث البيانات بنجاح.",
"data": {
"title": "الدكتور4",
"description": "ذلك ونحن نجد أن ما كان قد تعلمها من الحيوانات، ويجر يده على رأسه، ويمسح أعطافه. ويتملق إليه، ويظهر البشر والفرح به. حتى سكن جأش أسال وعلم أنه لا.",
"key": "monthly-events",
"meta": {
"movie_description": "@NetflixMENA",
"movie_title": "Get Smart With Money"
},
"movie_poster": "http://192.168.0.139:8080/storage/28582/بوستر.jpg",
"note_file": "http://192.168.0.139:8080/storage/28628/مفكرة-الثراء.pdf",
"backgrounds": [
"http://192.168.0.139:8080/storage/6294/Fi6yI87UAAA6NKH.jpeg"
]
},
"status_code": 200
}

Authorization

All monthly event page endpoints require admin authorization. The user must have the appropriate permissions to perform these operations.

Notes

  • The monthly event page is a singleton resource identified by the key 'monthly-events'
  • Background images are limited to a maximum of 4 images
  • Supported image formats: JPEG, PNG, JPG
  • Maximum image file size: 1024KB
  • Maximum PDF file size: 20MB
  • When updating, only the provided fields will be modified