Skip to main content

Update a banner.

PUT 

<your-unleash-url>/api/admin/banners/:id

Updates an existing banner identified by its id.

Request

Responses

bannerSchema

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L -X PUT '<your-unleash-url>/api/admin/banners/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"message": "**Reminder to everyone**: Maintenance is scheduled for *2337-12-27*.",
"enabled": true,
"variant": "info",
"sticky": true,
"icon": "build",
"link": "dialog",
"linkText": "Learn more",
"dialogTitle": "Learn more about it here",
"dialog": "# Information\n\nMaintenance is **scheduled**.\n\n## More details\n\nThis is an example dialog that supports Markdown."
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
Body required
{
  "message": "**Reminder to everyone**: Maintenance is scheduled for *2337-12-27*.",
  "enabled": true,
  "variant": "info",
  "sticky": true,
  "icon": "build",
  "link": "dialog",
  "linkText": "Learn more",
  "dialogTitle": "Learn more about it here",
  "dialog": "# Information\n\nMaintenance is **scheduled**.\n\n## More details\n\nThis is an example dialog that supports Markdown."
}
ResponseClear

Click the Send API Request button above and see the response here!