Get list of report subscriptions
Select
SaaS
Customer Managed
Get list of report subscriptions for a given company and reportId (optional)
Query Parameters
- companyId integer
Company Id
- reportId integer
Report Id
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema array
- reportId integer
- reportName string
- description string
- subTaskId integer
- taskId integer
- scheduleName string
- selfSubscription integer
-1 if not subscribed, 1 if subscribed
- companySubscription integer
0,1,2,3,4,5 for none subscribed, tenant admins subscribed, tenant admins unsubscribed, tenant operators subscribed, tenant operators unsubscribed, both subscribed respectively
- subscriptionToEmail integer
-1 if user is unsubscribed from email, 0 otherwise
- outputType integer
0,1,2,3,4 for PDF,CSV,MHTML,PRINT,HTML respectively
- scheduleUrl string
- enabled integer
frequencyDetails object
freq_type integerfreq_interval integerfreq_relative_interval integerfreq_recurrence_factor integerfreq_subday_interval integerskipOccurence integerskipDayNumber integeractive_start_date integeractive_start_time integeractive_end_date integeractive_end_time integeractive_end_occurence integerfreq_restart_interval integernext_schedule_time integertimezone_type integertimezoneDisplayName string
[
{
"reportId": 0,
"reportName": "string",
"description": "string",
"subTaskId": 0,
"taskId": 0,
"scheduleName": "string",
"selfSubscription": 0,
"companySubscription": 0,
"subscriptionToEmail": 0,
"outputType": 0,
"scheduleUrl": "string",
"enabled": 0,
"frequencyDetails": {
"freq_type": 0,
"freq_interval": 0,
"freq_relative_interval": 0,
"freq_recurrence_factor": 0,
"freq_subday_interval": 0,
"skipOccurence": 0,
"skipDayNumber": 0,
"active_start_date": 0,
"active_start_time": 0,
"active_end_date": 0,
"active_end_time": 0,
"active_end_occurence": 0,
"freq_restart_interval": 0,
"next_schedule_time": 0,
"timezone_type": 0,
"timezoneDisplayName": "string"
}
}
]
{
"reports": [
{
"reportId": 1,
"reportName": "SLA",
"description": null,
"subTaskId": 1,
"taskId": 1,
"scheduleName": "subscription_schedule_name",
"selfSubscription": 1,
"companySubscription": 1,
"subscriptionToEmail": 1,
"outputType": 1,
"scheduleUrl": "report_generation_url",
"enabled": 1,
"frequencyDetails": {
"freq_type": 1,
"freq_interval": 1,
"freq_relative_interval": 1,
"freq_recurrence_factor": 1,
"freq_subday_interval": 1,
"skipOccurence": 1,
"skipDayNumber": 1,
"active_start_date": 1,
"active_start_time": 1,
"active_end_date": 1,
"active_end_time": 1,
"active_end_occurence": 1,
"freq_restart_interval": 1,
"next_schedule_time": 1,
"timezone_type": 1,
"timezoneDisplayName": "Indian Standard Time"
}
}
]
}
Loading...