
Digital Support
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to Generate API Keys in Qlik Sense SaaS using APIs
Last Update:
May 10, 2022 2:59:01 PM
Updated By:
Created date:
Apr 12, 2021 7:09:45 AM
Environment
The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.
Script:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $body='{"description":"test4","expiry":"P1D"}' $hdrs = @{} $hdrs.Add("Authorization","Bearer eyJhbGciOiJFUzM4NCIsImtp...NOofkzjW3R1fc4h") $hdrs.Add("content-type","application/json") $url = "https://yourtenant.eu.qlikcloud.com/api/v1/api-keys" Invoke-RestMethod -Uri $url -Method Post -Headers $hdrs -Body $body
Resources:
Qlik.Dev - Tutorial for Generating Your First API Key
Help.Qlik.Com - Generating API Key Documentation
Leveraging APIs on Qlik Sense Enterprise SaaS
Format for Time Duration
4,114 Views