Update Advertisement
PUT {{baseUrl}}/advertisements/:advertisements_id
This endpoint allows you to update an existing advertisement post by providing its ID as a path parameter.
🌐 Multi-Lang Support
The following are translate-able by the Header Values, such as
ACCEPT-LANGUAGE
&CONTENT-LANGUAGE
:
Variable Title description
OAuth Scopes
marketing.read_write
Request Body
{"title"=>"Adv Title", "description"=>"Adv Description", "type"=>{"name"=>"product", "id"=>1261174103, "link"=>nil}, "expire_date"=>"2022-12-31", "pages"=>["all"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
ACCEPT-LANGUAGE | string | Set Language Code you want to get the response with. Retrieve a list of supported languages using the Language Endpoint. Use the iso_code value you get from the language endpoint as a value in this header. | |
CONTENT-LANGUAGE | string | (OPTIONAL) Show the used language of the response. Note that not passing a value here or passing the default value of the iso_code as ar will not appear in the response. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"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"]}}