Light Mode
Update Advertisement
PUT
/advertisements/{advertisements_id}Last modified: 2 months ago
This endpoint allows you to update an existing advertisement post by passing the advertisement_id
as a path parameter.
Request
Path Params
advertisements_id
string
required
Advertisement ID. List of Advertisement ID can be found here.
Body Params application/json
No schema defined
Example
{
"title": "Adv Title",
"description": "Adv Description",
"type": {
"name": "product",
"id": 1261174103,
"link": null
},
"expire_date": "2022-12-31",
"pages": [
"all"
]
}
Request samples
Responses
Success(200)
Not Found(404)
Error Validation(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 200,
"success": true,
"data": {
"id": 1549230938,
"title": "Adv Title",
"description": "Adv Description",
"type": {
"id": 1261174103,
"name": "product",
"link": null
},
"style": {
"icon": "sicon-bell",
"font_color": "#ffffff",
"background_color": "#9d8383"
},
"expire_date": {
"date": "2022-12-12 00:00:00.000000",
"timezone_type": 3,
"timezone": "Asia/Riyadh"
},
"pages": [
"all"
]
}
}
Last modified: 2 months ago