May 10, 2022 11:59:01 AM
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.
[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
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