How to Update a Slideshow Using the REST API
Authorization
Authorization: bearer <token>Self-Hosted Server
For self-hosted instances, use the following endpoint:
https://{yourdomain}/bi/api/site/<site_identifier>/v6.0/slideshows/{slideshowId}Bold BI Cloud Server
For Bold BI Cloud instances, use the following endpoint:
https://{yourdomain}/bi/api/v6.0/slideshows/{slideshowId}Make sure to replace {slideshowId}
Request Type
- PUT: This request type is used to update a slideshow.
Body
Additionally, you can add a new slide by specifying the necessary dashboard ID, dashboard name, corresponding dashboard category ID, and category name.
You may also remove unwanted slides by deleting existing slides from the list.
To Get Dashboard ID:
For information on how to get the Dashboard ID in Bold BI, consult the relevant documentation here.
For information on how to obtain the category list and each category ID, consult the relevant documentation here.
Example JSON data:
{
"Name": "slideshowapiupdate",
"Duration": 10,
"Slides": [
{
"OrderNumber": 3,
"ItemType": "Dashboard",
"ItemInfo": {
"Id": "6a246819-daec-4b94-806f-5de9faa3f2da",
"Name": "Supply Chain Performance Dashboard",
"CategoryId": "ee5f0c3c-9605-4736-a430-740713c3bcaf",
"CategoryName": "Getting Started Tutorial",
"TabId": "",
"TabName": "",
"ViewId": "",
"ViewName": "",
"IsActive": true
}
},
{
"OrderNumber": 1,
"ItemType": "Dashboard",
"ItemInfo": {
"Id": "9f798e82-7696-4a7e-8dcc-6fe4cc4c6f9d",
"Name": "School Performance Dashboard",
"CategoryId": "ee5f0c3c-9605-4736-a430-740713c3bcaf",
"CategoryName": "Getting Started Tutorial",
"TabId": "",
"TabName": "",
"ViewId": "",
"ViewName": "",
"IsActive": true
}
},
{
"OrderNumber": 2,
"ItemType": "Dashboard",
"ItemInfo": {
"Id": "366c459d-4ceb-4072-8ba5-7f1172965744",
"Name": "Snow Dashboard",
"CategoryId": "ee5f0c3c-9605-4736-a430-740713c3bcaf",
"CategoryName": "Getting Started Tutorial",
"TabId": "",
"TabName": "",
"ViewId": "",
"ViewName": "",
"IsActive": true
}
}
]
}Example Request
Responses
- 200 - A slideshow was modified successfully.
- 400 - The content of the request body is missing or incomplete.
- 401 - Access denied.
- 404 - Item details not found.
- 405 - Request type was not PUT.
- 406 - The content of the request body is invalid.
- 417 - Failed to update slideshow.