Banners
Banners display short messages at the top of the client interface to share tenant-wide information, warnings, or issues. When embedding content, banners aren't shown inside qlik-embed UIs. The only embedding method that displays banners is an iFrame generated using the App Integration API.
Endpoints
Retrieves announcement banner configuration for the tenant, including content, scheduling, and link information for display at the top of the client interface.
Facts
| Rate limit | Tier 1 (1000 requests per minute) |
Responses
200
Banner retrieval was successful.
- application/json object
application/json properties
- id stringRequired
- type stringRequired
Can be one of: "info""warning""error""resolved"
- enabled booleanRequired
- endTime stringRequired
date-time in UTC.
- linkUrl string
- message stringRequired
- tenantId stringRequired
- createdAt stringRequired
- createdBy stringRequired
userId of the user who created the banner
- linkLabel string
- startTime stringRequired
date-time in UTC.
- updatedAt stringRequired
- updatedBy stringRequired
userId of the user who last modified the banner
- linkEnabled booleanRequired
-
400
Bad Request
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- title string
- detail string
- status integer
-
- traceId string
-
401
Unauthorized
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- title string
- detail string
- status integer
-
- traceId string
-
403
Forbidden
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- title string
- detail string
- status integer
-
- traceId string
-
404
Not found
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- title string
- detail string
- status integer
-
- traceId string
-
500
Internal Server Error
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- title string
- detail string
- status integer
-
- traceId string
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.banners.getBanners()qlik banner lscurl "https://{tenant}.{region}.qlikcloud.com/api/v1/banners" \-H "Authorization: Bearer <access_token>"Example Response
{ "id": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69", "type": "info", "enabled": true, "endTime": "2024-01-01T00:00:00.000Z", "linkUrl": "string", "message": "string", "tenantId": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69", "createdAt": "2024-01-01T00:00:00.000Z", "createdBy": "string", "linkLabel": "string", "startTime": "2024-01-01T00:00:00.000Z", "updatedAt": "2024-01-01T00:00:00.000Z", "updatedBy": "string", "linkEnabled": true}Sets content, scheduling, and optional action links for the tenant-wide announcement banner. Requires TenantAdmin role.
Facts
| Rate limit | Tier 2 (100 requests per minute) |
Request Body
- application/json object
application/json properties
- type stringRequired
Can be one of: "info""warning""error""resolved"
- enabled booleanRequired
- endTime stringRequired
date-time in UTC.
- linkUrl string
- message stringRequired
- linkLabel string
- startTime stringRequired
date-time in UTC.
- linkEnabled booleanRequired
-
Responses
201
The banner has been successfully upserted.
- application/json object
application/json properties
- id stringRequired
- type stringRequired
Can be one of: "info""warning""error""resolved"
- enabled booleanRequired
- endTime stringRequired
date-time in UTC.
- linkUrl string
- message stringRequired
- tenantId stringRequired
- createdAt stringRequired
- createdBy stringRequired
userId of the user who created the banner
- linkLabel string
- startTime stringRequired
date-time in UTC.
- updatedAt stringRequired
- updatedBy stringRequired
userId of the user who last modified the banner
- linkEnabled booleanRequired
-
400
Bad Request
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- title string
- detail string
- status integer
-
- traceId string
-
401
Unauthorized
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- title string
- detail string
- status integer
-
- traceId string
-
403
Forbidden
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- title string
- detail string
- status integer
-
- traceId string
-
404
Not found
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- title string
- detail string
- status integer
-
- traceId string
-
500
Internal Server Error
- application/json object
application/json properties
- errors array of objects
errors properties
- code string
- title string
- detail string
- status integer
-
- traceId string
-
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({ hostConfig: { host: 'https://{tenant}.{region}.qlikcloud.com', apiKey: '<access-token>', },})
await qlik.banners.upsertBanners({ enabled: true, endTime: '2024-01-01T00:00:00.000Z', linkEnabled: true, linkLabel: 'string', linkUrl: 'string', message: 'string', startTime: '2024-01-01T00:00:00.000Z', type: 'info',})qlik banner upsert \ --enabled true \ --endTime '2024-01-01T00:00:00.000Z' \ --linkEnabled true \ --message 'string' \ --startTime '2024-01-01T00:00:00.000Z' \ --type 'info'curl "https://{tenant}.{region}.qlikcloud.com/api/v1/banners/actions/upsert" \-X POST \-H "Content-type: application/json" \-H "Authorization: Bearer <access_token>" \-d '{"type":"info","enabled":true,"endTime":"2024-01-01T00:00:00.000Z","linkUrl":"string","message":"string","linkLabel":"string","startTime":"2024-01-01T00:00:00.000Z","linkEnabled":true}'Example Response
{ "id": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69", "type": "info", "enabled": true, "endTime": "2024-01-01T00:00:00.000Z", "linkUrl": "string", "message": "string", "tenantId": "TiQ8GPVr8qI714Lp5ChAAFFaU24MJy69", "createdAt": "2024-01-01T00:00:00.000Z", "createdBy": "string", "linkLabel": "string", "startTime": "2024-01-01T00:00:00.000Z", "updatedAt": "2024-01-01T00:00:00.000Z", "updatedBy": "string", "linkEnabled": true}