update ads
POST /api/ads/update
This endpoint is used for submitting a update advertisement or content. It validates the input fields and processes the submission based on the provided data.
application/json
string
(required)
integer
(required)string
file
string
script.
string
integer
string
integer
array
string
(required) - The day of the week (e.g., "sunday").string
(required) - The start time in HH:mm
format.string
(required) - The end time in HH:mm
format.{
"token": "8|koJNODexEl8Kif3BW7wpiZFrrAAenbxl0fkZ6rwWb0a83fb1",
"ads_id": 2,
"website_link": "https://example.com",
"max_show": 10,
"title": "Example Ad",
"duration": 30,
"ads_type": 1,
"schedule": [
{
"day": "sunday",
"start": "15:56",
"end": "15:57"
}
]
}
Status Code: 200 OK
Body:
{
"status": true,
"message": "Content submitted successfully."
}