Insights API
Overview
Insights reports are one of IQM's analytics tools that help Advertisers quickly identify trends and apply precise adjustments to deliver better results for Campaigns. With pre-defined metrics and dimensions, Insights reports can be generated for Provider Level Data Reports and ScriptLift Studies Reports.
- Provider Level Data (VLD) Reports include details about healthcare professionals targeted in your Campaigns, and provide similar details as VLD Reports while adhering to healthcare data privacy regulations.
- ScriptLift Studies (SLS) Reports include key details about prescribing behaviors and how they are influenced by current and previous healthcare Campaigns.
More resources:
- Reporting and Analytics Help Center Article
- Insights API Guidelines
Authentication
Use the following header parameters for all requests:
Headers | |
---|---|
Authentication string required | Authentication bearer token See Authentication Guide |
X-IAA-OW-ID integer required | Organization Workspace ID Header |
Provider Level Data Reports
PLD Resource Properties
Resource Properties
pldId integer | PLD ID |
pldName string | PLD name |
campaignId integer | Campaign ID |
campaignName string | Campaign name |
pldStatusId integer | PLD Status Type ID |
startDate integer | Unix epoch timestamp of start date, in milliseconds |
endDate integer | Unix epoch timestamp of end date, in milliseconds |
ioId integer | Insertion Order ID |
ioName string | Insertion Order name |
ioTypeId integer | Insertion Order Budget Type ID |
isCampaignEligible boolean | Indicates that Campaign is eligible for VLD Report: true |
pldCreatedOn integer | Unix epoch timestamp of creation date, in milliseconds |
creativeTypeId integer | Creative Type ID |
campaignPldTimezoneId integer | Timezone ID |
pldReportCreatable boolean | Indicates if PLD Report can be generated for the given Campaign and date range (true) |
pldChargeableImps integer | The number of chargeable impressions for the requested PLD Report |
pldChargedImps integer | The number of impressions for which the PLD Report is already generated |
pldChargeableCost integer | Cost to generate the PLD Report |
pldChargedCost integer | Cost of PLD Report that is already generated |
fundsAvailable boolean | Indicates if sufficient funds are available in the Advertiser's account to generate the PLD Report (true) |
Get List of PLD Reports
GET /api/v3/ins/pld-reportsGet a list of PLD Reports.
Query Parameters | |
---|---|
searchField string | Search results by keyword |
noOfEntries integer | Maximum number of entries per page, default: 200 |
pageNo integer | Number of pages for retrieved data, default: 1 |
sortBy string | Sorts by ascending (+) or descending (-), default: -pldId |
See PLD Resource Properties for response property descriptions.
- JSON
- TypeScript
{
"success": true,
"data": {
"totalRecords": 10,
"pldReportDataList": [
{
"pldId": 10,
"pldName": "530667_PLD_Insights_7",
"campaignName": "prod-campaign-21145",
"campaignId": 21145,
"pldStatusId": 3,
"startDate": 1732165200000,
"endDate": 1732424399000,
"ioId": 5,
"ioName": "Corporate, Inc.",
"isCampaignEligible": false,
"pldCreatedOn": 1721253632,
"creativeTypeId": 11,
"campaignPldTimezoneId": 29,
"ioTypeId": 1
},
{
"pldId": 9,
"pldName": "530667_PLD_Insights_6",
"campaignName": "Campaign-4949",
"campaignId": 4949,
"pldStatusId": 3,
"startDate": 1732165200000,
"endDate": 1732424399000,
"ioId": 15,
"ioName": "Quinton for Mayor",
"isCampaignEligible": false,
"pldCreatedOn": 1720325578,
"creativeTypeId": 14,
"campaignPldTimezoneId": 29,
"ioTypeId": 1
}
],
"filteredRecords": 10
}
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
success: boolean;
data: {
totalRecords: number;
filteredRecords: number;
pldReportDataList: {
pldId: number;
pldName: string;
campaignName: string;
campaignId: number;
pldStatusId: number;
startDate: number;
endDate: number;
ioId: number;
ioName: string;
isCampaignEligible: boolean;
pldCreatedOn: number;
creativeTypeId: number;
campaignPldTimezoneId: number;
ioTypeId: number;
}[];
}
}
}
};
}
function getPLDReportList(): Promise<Responses> {
const options = {
method: 'GET',
url: 'https://app.iqm.com/api/v3/ins/pld-reports',
params: {
query?: {
searchField?: `string`,
pageNo?: `number`,
noOfEntries?: `number`,
sortBy?: `string`,
}
}
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}
Get List of Campaigns Eligible for PLD Reports
GET /api/v3/ins/pld-reports/campaignsGet a list of Campaign IDs by status eligible for PLD Report generation.
Response Properties
running array of integers | Campaign IDs with "running" status |
paused array of integers | Campaign IDs with "paused" status |
expired array of integers | Campaign IDs with "expired" status |
See PLD Resource Properties for response property descriptions.
- JSON
- TypeScript
{
"success": true,
"data": {
"running": [
12345,
12543
],
"paused": [
54321,
34521
],
"expired": [
33452,
22453
]
}
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
success: boolean;
data: {
running: number[];
paused: number[];
expired: number[];
}
}
}
};
}
function getStatusWiseCampaignsForPLDReports(): Promise<Responses> {
const options = {
method: 'GET',
url: 'https://app.iqm.com/api/v3/ins/pld-reports/campaigns',
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}
Generate PLD Report
POST /api/v3/ins/pld-reportThis API calculates the cost for the impressions for the Provider Level Data Reports based on the impressions and mark up charged on the Organization and then creates the PLD Reports.
A Campaign must meet the following eligibility criteria to generate PLD Report:
- Must be healthcare Campaign
- "running", "expired" (within last 90 days), "paused" (within last 90 days) status
- Must have duration of 3 or more days
- Audience type: Matched Audience from NPI IDs
Request Schema | |
---|---|
pldStartDate integer | Unix epoch timestamp of start date, in milliseconds |
pldEndDate integer | Unix epoch timestamp of end date, in milliseconds |
campaignId integer | Campaign ID |
pldId integer | PLD ID to regenerate |
See PLD Resource Properties for response property descriptions.
- JSON
- TypeScript
{
"campaignId": 12345,
"pldStartDate": 1722311000,
"pldEndDate": 1722315000
}
{
"success": true,
"data": {
"pldReportCreated": true,
"campaignId": 1,
"campaignName": "Campaign Name",
"campaignStatus": "running",
"pldStartDate": 1722311000,
"pldEndDate": 1722315000,
"pldChargeableImps": 1000,
"pldChargedImps": 100,
"pldChargeableCost": 1000,
"pldChargedCost": 100,
"fundsAvailable": true
}
}
{
"success": true,
"data": {
"pldReportCreated": false,
"message": "PLD Insights can't be generated for this campaign at the moment as another insight with overlapping date range is processing"
}
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
content: {
"application/json": {
success: boolean;
data: {
pldReportCreated: boolean;
campaignId: number;
campaignName: string;
campaignStatus: string;
pldStartDate: number;
pldEndDate: number;
pldChargeableImps: number;
pldChargedImps: number;
pldChargeableCost: number;
pldChargedCost: number;
fundsAvailable: boolean
}
}
};
};
}
function generatePLDReports(): Promise<Responses> {
const options = {
method: 'POST',
url: 'https://app.iqm.com/api/v3/ins/pld-report',
requestBody: {
content: {
"application/json": {
campaignId?: `number`,
pldId?: `number`,
pldStartDate?: `number`,
pldEndDate?: `number`,
endDate?: `number`,
startDate?: `number`,
id?: `number`,
}
}
}
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}
Get PLD Reports Columns
GET /api/v3/ins/pld-reports/columnsGet columns details for PLD Reports.
The response properties for this endpoint include names of each possible column paired with a boolean value indicating whether it is included in the report (true) or not (false).
- JSON
- TypeScript
{
"success": true,
"data": {
"id": true,
"insightsName": true,
"campaignName": true,
"campaignId": true,
"status": true,
"dateRange": true,
"createdOn": true,
"ioName": true,
"ioId": false
}
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
content: {
"application/json": {
success: boolean;
data: {
id: boolean;
insightsName: boolean;
campaignName: boolean;
campaignId: boolean;
status: boolean;
dateRange: boolean;
createdOn: boolean;
ioName: boolean;
ioId: boolean;
}
}
};
};
}
function fetchPLDReportSelectedColumns(): Promise<Responses> {
const options = {
method: 'GET',
url: 'https://app.iqm.com/api/v3/ins/pld-reports/columns',
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}
Update PLD Reports Columns
POST /api/v3/ins/pld-reports/columnsSave or update the selection of columns shown in PLD Reports.
The request schema and response properties for this endpoint include names of each possible column paired with a boolean value indicating whether it is included in the report (true) or not (false).
- JSON
- TypeScript
{
"id": true,
"insightsName": true,
"campaignName": true,
"campaignId": true,
"status": true,
"dateRange": true,
"createdOn": true,
"ioName": true,
"ioId": false
}
{
"success": true,
"data": {
"id": true,
"insightsName": true,
"campaignName": true,
"campaignId": true,
"status": true,
"dateRange": true,
"createdOn": true,
"ioName": true,
"ioId": false
}
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
content: {
"application/json": {
success: boolean;
data: {
id: boolean;
insightsName: boolean;
campaignName: boolean;
campaignId: boolean;
status: boolean;
dateRange: boolean;
createdOn: boolean;
ioName: boolean;
ioId: boolean;
}
}
};
};
}
function saveOrUpdatePLDReportSelectedColumns(): Promise<Responses> {
const options = {
method: 'POST',
url: 'https://app.iqm.com/api/v3/ins/pld-reports/columns',
requestBody: {
content: {
"application/json": {
id: `boolean`,
insightsName: `boolean`,
campaignName: `boolean`,
campaignId: `boolean`,
status: `boolean`,
dateRange: `boolean`,
createdOn: `boolean`,
ioName: `boolean`,
ioId: `boolean`,
}
}
}
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}
Download PLD Report
POST /api/v3/ins/pld-report/downloadGet a download link for a PLD insight Report in CSV or XLSX format.
Request Schema | |
---|---|
fileType integer | File type ID XLSX: 1 CSV: 2 |
pldId integer | Provider Level Data Report ID |
Response Properties
pldReportUrl string | PLD Report File URL |
- JSON
- TypeScript
{
"fileType": 1,
"pldId": 50
}
{
"success": true,
"data": {
"pldReportUrl": "https://dowload.domain.com/pld-reports/20220101/pld-report-1.xlsx"
}
}
More Responses
{
"success": false,
"errorObjects": [
{
"error": "Invalid sortBy value."
}
]
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
content: {
"application/json": {
success: boolean;
data: {
pldReportUrl: string;
}
}
};
};
}
function getPLDReportDownloadUrl(): Promise<Responses> {
const options = {
method: 'POST',
url: 'https://app.iqm.com/api/v3/ins/pld-report/download',
requestBody: {
content: {
"application/json": {
fileTypeId?: `number`,
vldId?: `number`,
pldId?: `number`,
}
}
}
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}
Delete PLD Report
DELETE /api/v3/ins/pld-reportsDeletes PLD Reports that are not marked as deleted and have a 'failed' status, requires user authorization and checks if the provided PLD IDs are valid.
Query Parameters | |
---|---|
pldIds string | Comma separated PLD IDs |
Response Properties
success boolean | Indicates Report was succesfully deleted: true |
message string | Success message |
- JSON
- TypeScript
{
"success": true,
"data": {
"message": "255944_PLD_Insights_2 deleted successfully"
}
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
content: {
"application/json": {
success: boolean;
data: {
message: string;
}
}
};
};
}
function deleteFailedPLDReport(): Promise<Responses> {
const options = {
method: 'DELETE',
url: 'https://app.iqm.com/api/v3/ins/pld-reports',
params: {
query: {
pldIds: `string`,
}
}
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}
ScriptLift Studies Reports
SLS Resource Properties
Resource Properties
slsId integer | SLS ID |
slsName string | SLS name |
campaignIds array of integers | Campaign IDs |
slsStatusId integer | SLS Status Type ID |
startDate integer | Unix epoch timestamp of start date, in milliseconds |
endDate integer | Unix epoch timestamp of end date, in milliseconds |
ioId integer | Insertion Order ID |
ioName string | Insertion Order name |
ioTypeId integer | Insertion Order Budget Type ID |
isCampaignEligible boolean | Indicates that Campaign is eligible for SLS Report: true |
slsCreatedOn integer | Unix epoch timestamp of creation date, in milliseconds |
campaignSlsTimezoneId integer | Timezone ID |
slsChargeableImps integer | The number of chargeable impressions for the requested SLS Report |
slsChargedImps integer | The number of impressions for which the SLS Report is already generated |
slsChargeableCost integer | Cost to generate the SLS Report |
slsChargedCost integer | Cost of SLS Report that is already generated |
pdfFileSize integer | PDF file size in bytes |
excelFileSize integer | Excel file size in bytes |
slsReportTypeIds array of integers | SLS Report type IDs |
Get List of SLS Reports
GET /api/v3/ins/sls-reportsGet a list of SLS Reports.
Query Parameters | |
---|---|
searchField string | Search results by keyword |
noOfEntries integer | Maximum number of entries per page, default: 200 |
pageNo integer | Number of pages for retrieved data |
sortBy string | Sorts by ascending (+) or descending (-), default: -slsId |
- JSON
- TypeScript
{
"success": true,
"data": {
"totalRecords": 2,
"slsReportDataList": [
{
"slsId": 10,
"slsName": "530667_SLS_Insights_7",
"campaignIds": [
21145,
21146,
21147
],
"slsStatusId": 3,
"slsStatusName": "Failed",
"startDate": 1732165200000,
"endDate": 1732424399000,
"ioId": 5,
"ioName": "Corporate, Inc.",
"isCampaignEligible": false,
"slsCreatedOn": 1721253632,
"campaignSlsTimezoneId": 29,
"ioTypeId": 1,
"pdfFileSize": 2500000,
"excelFileSize": 2500000,
"slsReportTypeIds": [
1,
2,
3
]
},
{
"slsId": 9,
"slsName": "530667_SLS_Insights_6",
"campaignId": [
4949,
5959
],
"slsStatusId": 2,
"slsStatusName": "Processing",
"startDate": 1732165200000,
"endDate": 1732424399000,
"ioId": 15,
"ioName": "Quinton for Mayor",
"isCampaignEligible": false,
"slsCreatedOn": 1720325578,
"campaignSlsTimezoneId": 29,
"ioTypeId": 1,
"slsReportTypeIds": [
1,
3
]
},
],
"filteredRecords": 2
}
}
See TypeScript Prerequisites for usage.
Generate SLS Report
POST /api/v3/ins/sls-reportsThis API calculates the cost for the impressions for the ScriptLift Studies Reports based on the impressions and mark up charged on the Organization and then creates the PLD Reports.
Request Schema | |
---|---|
ioId integer | Insertion Order ID |
campaignIds array of integers | Campaign IDs |
slsStartDate integer | Unix epoch timestamp of start date, in milliseconds |
slsEndDate integer | Unix epoch timestamp of end date, in milliseconds |
slsName string | SLS name |
slsLookbackDuration integer | SLS lookback duration |
conceptGroupId integer | Concept group ID |
reportTypes array of integers | Report type IDs |
competitorConceptGroupIds array of integers | Competitor concept group IDs |
- JSON
- TypeScript
{
"ioId": 1234,
"campaignIds": [
1,
2,
3
],
"slsStartDate": 1722311000,
"slsEndDate": 1722315000,
"slsName": "Dummy SLS Name",
"slsLookbackDuration": 3,
"conceptGroupId": 202335,
"reportTypes": [
1,
2,
3
],
"competitorConceptGroupIds": [
800214,
800215,
800216
]
}
{
"success": true,
"data": {
"slsReportCreated": true,
"campaignIds": [
1,
2,
3
],
"slsStartDate": 1722311000,
"slsEndDate": 1722315000,
"slsChargeableImps": 1000,
"slsChargedImps": 100,
"slsChargeableCost": 1000,
"slsChargedCost": 100,
"slsName": "Dummy SLS Name",
"slsLookbackDuration": 3,
"conceptGroupId": 202335,
"reportTypes": [
1,
2,
3
],
"competitorConceptGroupIds": [
800214,
800215,
800216
],
"fundsAvailable": true
}
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
content: {
"application/json": {
success: boolean;
data: {
slsReportCreated: number;
campaignIds: number[];
slsStartDate: number;
slsEndDate: number;
slsChargeableImps: number;
slsChargedImps: number;
slsChargeableCost: number;
slsChargedCost: number;
slsName: string;
slsLookbackDuration: number;
conceptGroupId: number;
reportTypes: number[];
competitorConceptGroupIds: number[];
fundsAvailable: boolean;
}
}
};
};
}
function generateSLSReports(): Promise<Responses> {
const options = {
method: 'POST',
url: 'https://app.iqm.com/api/v3/ins/sls-reports',
requestBody: {
content: {
"application/json": {
ioId?: `number`,
campaignIds?: `array of numbers`,
slsId?: `number`,
slsStartDate?: `number`,
slsEndDate?: `number`,
slsName?: `string`,
slsLookbackDuration?: `number`,
conceptGroupId?: `number`,
competitorConceptGroupIds?: `array of numbers`,
reportTypes?: `array of numbers`,
endDate?: `number`,
startDate?: `number`,
id?: `number`,
}
}
}
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}
SLS Reports Computation
POST /api/v3/ins/sls-reports/computationCalculates the cost for the impressions for the SLS Report based on impressions and the mark up charged on the Organization.
Request Schema | |
---|---|
ioId integer | Insertion Order ID |
campaignIds array of integers | Campaign IDs |
slsStartDate integer | Unix epoch timestamp of start date, in milliseconds |
slsEndDate integer | Unix epoch timestamp of end date, in milliseconds |
slsName string | SLS name |
slsLookbackDuration integer | SLS lookback duration |
conceptGroupId integer | Concept group ID |
reportTypes array of integers | Report type IDs |
competitorConceptGroupIds array of integers | Competitor concept group IDs |
- JSON
- TypeScript
{
"ioId": 1234,
"campaignIds": [
1,
2,
3
],
"slsStartDate": 1722311000,
"slsEndDate": 1722315000,
"slsName": "Dummy SLS Name",
"slsLookbackDuration": 3,
"conceptGroupId": 202335,
"reportTypes": [
1,
2,
3
],
"competitorConceptGroupIds": [
800214,
800215,
800216
]
}
{
"success": true,
"data": {
"slsReportCreated": true,
"campaignIds": [
1,
2,
3
],
"slsStartDate": 1722311000,
"slsEndDate": 1722315000,
"slsChargeableImps": 1000,
"slsChargedImps": 100,
"slsChargeableCost": 1000,
"slsChargedCost": 100,
"slsName": "Dummy SLS Name",
"slsLookbackDuration": 3,
"conceptGroupId": 202335,
"reportTypes": [
1,
2,
3
],
"competitorConceptGroupIds": [
800214,
800215,
800216
],
"fundsAvailable": true
}
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
content: {
"application/json": {
success: boolean;
data: {
slsReportCreated: number;
campaignIds: number[];
slsStartDate: number;
slsEndDate: number;
slsChargeableImps: number;
slsChargedImps: number;
slsChargeableCost: number;
slsChargedCost: number;
slsName: string;
slsLookbackDuration: number;
conceptGroupId: number;
reportTypes: number[];
competitorConceptGroupIds: number[];
fundsAvailable: boolean;
}
}
};
};
}
function getChargeableImpressionsDataForSLSReports(): Promise<Responses> {
const options = {
method: 'POST',
url: 'https://app.iqm.com/api/v3/ins/sls-reports/computation',
requestBody: {
content: {
"application/json": {
ioId?: `number`,
campaignIds?: `array of numbers`,
slsId?: `number`,
slsStartDate?: `number`,
slsEndDate?: `number`,
slsName?: `string`,
slsLookbackDuration?: `number`,
conceptGroupId?: `number`,
competitorConceptGroupIds?: `array of numbers`,
reportTypes?: `array of numbers`,
endDate?: `number`,
startDate?: `number`,
id?: `number`,
}
}
}
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}
Validate SLS Report Name
GET /api/v3/ins/sls-reports/validate/nameValidate a name for SLS Reports.
Query Parameters | |
---|---|
reportName string | Report name |
Response Properties
success boolean | Indicates successful validation |
data string | Success message |
- JSON
- TypeScript
{
"success": true,
"data": "This SLS report name is valid"
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
content: {
"application/json": {
success: boolean;
data: string;
}
};
};
}
function validateSlsReportName(): Promise<Responses> {
const options = {
method: 'GET',
url: 'https://app.iqm.com/api/v3/ins/sls-reports/validate/name',
params: {
query: {
reportName: `string`
}
}
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}
Get List of Campaigns Eligible for SLS Reports
GET /api/v3/ins/sls-reports/campaignsGet a list of Campaign IDs by status eligible for VLD Report generation.
Response Properties
running array of integers | Campaign IDs with "running" status |
paused array of integers | Campaign IDs with "paused" status |
expired array of integers | Campaign IDs with "expired" status |
- JSON
- TypeScript
{
"success": true,
"data": {
"running": [
12345,
12543
],
"paused": [
54321,
34521
],
"expired": [
33452,
22453
]
}
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
content: {
"application/json": {
success: boolean;
data: {
running: number[];
paused: number[];
expired: number[];
}
}
};
};
}
function getStatusWiseCampaignsForSLSReports(): Promise<Responses> {
const options = {
method: 'GET',
url: 'https://app.iqm.com/api/v3/ins/sls-reports/campaigns',
params: {
query: {
reportName: `string`
}
}
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}
Download SLS Report
POST /api/v3/ins/sls-reports/downloadGet a download link for a SLS Insight Report in CSV or XLSX format.
Request Schema | |
---|---|
fileType integer | File type ID XLSX: 1 CSV: 2 |
slsId integer | Practitioner Level Data Report ID |
Response Properties
slsReportUrl string | SLS Report File URL |
- JSON
- TypeScript
{
"fileType": 1,
"slsId": 50
}
{
"success": true,
"data": {
"pldReportUrl": "https://dowload.domain.com/pld-reports/20220101/pld-report-1.xlsx"
}
}
More Responses
{
"success": false,
"errorObjects": [
{
"error": "Invalid sortBy value."
}
]
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
content: {
"application/json": {
success: boolean;
data: {
pldReportUrl: string;
}
}
};
};
}
function getSLSReportDownloadUrl(): Promise<Responses> {
const options = {
method: 'POST',
url: 'https://app.iqm.com/api/v3/ins/sls-reports/download',
requestBody: {
content: {
"application/json": {
fileTypeId?: `number`,
slsId?: `number`,
}
}
}
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}
Delete SLS Report
DELETE /api/v3/ins/sls-reportsDeletes SLS Reports that are not marked as deleted and have a 'failed' status, requires user authorization and checks if the provided SLS IDs are valid.
Query Parameters | |
---|---|
slsIds string | Comma separated SLS IDs |
Response Properties
success boolean | Indicates Report was succesfully deleted: true |
message string | Success message |
- JSON
- TypeScript
{
"success": true,
"data": {
"message": "255944_PLD_Insights_2 deleted successfully"
}
}
See TypeScript Prerequisites for usage.
import {
getInstance
} from "prerequisites"
const axios = getInstance();
interface Responses {
200: {
content: {
"application/json": {
success: boolean;
data: {
message: string;
}
}
};
};
}
function deleteFailedSLSReport(): Promise<Responses> {
const options = {
method: 'DELETE',
url: 'https://app.iqm.com/api/v3/ins/sls-reports',
params: {
query: {
slsIds: `string`,
}
}
};
return axios.request(options).then(({ data }: { data: Responses }) => data);
}