Update Subscription Schedule
Select
SaaS
Customer Managed
Modify the subscription properties like recipients, frequency, output type, etc.
- application/json
Request Body
- companyId integer
report object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
error object
{
"error": {
"errorCode": 0,
"errorMessage": "string"
}
}
{
"error": {
"errorCode": 0,
"errorMessage": ""
}
}
POST /reports/updatesubscriptions
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Reports/UpdateSubscriptions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"companyId": 0,
"report": {
"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"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Reports/UpdateSubscriptions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"companyId": 0,
"report": {
"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"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Reports/UpdateSubscriptions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"companyId": 0,
"report": {
"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"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Reports/UpdateSubscriptions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"companyId": 0,
"report": {
"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"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Reports/UpdateSubscriptions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"companyId": 0,
"report": {
"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"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Reports/UpdateSubscriptions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"companyId": 0,
"report": {
"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"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Reports/UpdateSubscriptions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"companyId": 0,
"report": {
"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"
}
}
}'