PUT api/reportserver/v3/data-alerts/{dataAlertId}
Updates the data alert with the specified ID.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| dataAlertId |
The data alert ID. | string |
Required |
Body Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Rules |
Specifies the rules for the data alert. | Collection of DataAlertRule |
Required |
| Name |
Gets or sets the scheduled task name. | string |
Required |
| Enabled |
Gets or sets whether the scheduled task is either enabled or disabled. | boolean |
None. |
| Reports |
Gets or sets the reports which are rendered by the scheduled task. | Collection of ScheduledTaskReport |
Required |
| StartDate |
Obsolete since R2 2020. Use StartDateUtc property instead. Gets or sets the start date of the scheduled task in the author local time zone. | date |
None. |
| StartDateUtc |
Gets or sets the start date of the scheduled task in UTC. | date |
None. |
| BaseUtcOffset |
Gets or sets the UTC offset to the local timezone of the scheduled task author. Used for the mail templates date time type tokens. | decimal number |
None. |
| RecurrenceRule |
Gets or sets recurrence rule for the scheduled task. | RecurrenceRule |
None. |
| LocalUsersMailTemplate |
Gets or sets the mail template for local users. Set to null to use the default template. | TaskMailTemplateModel |
None. |
| ExternalUsersMailTemplate |
Gets or sets the mail template for external users. Set to null to use the default template. | TaskMailTemplateModel |
None. |
| ExternalEmails |
Gets or sets the emails of the external users to whom the report document should be sent. | Collection of string |
None. |
| SubscriberIds |
Provides a list of IDs of the users subscribed to the data alert. | Collection of string |
None. |
Request body formats
application/json, text/json, application/*+json
{
"Rules": [
{
"Index": 279,
"DataItemName": "Sales Reports",
"Clauses": [
{
"Column": "TotalSales",
"Operator": "is",
"Value": "100"
},
{
"Column": "Region",
"Operator": "is",
"Value": "100"
}
]
},
{
"Index": 285,
"DataItemName": "HR Reports",
"Clauses": [
{
"Column": "Region",
"Operator": "is",
"Value": "100"
},
{
"Column": "TotalSales",
"Operator": "is",
"Value": "100"
}
]
}
],
"Name": "Marketing Reports",
"Enabled": true,
"Reports": [
{
"ReportId": "5d8ef40e8c5",
"DocumentFormat": "Pdf",
"Parameters": {
"OrderDate": "2024-01-15",
"Region": "North America"
}
},
{
"ReportId": "636f0237fd9",
"DocumentFormat": "Pdf",
"Parameters": {
"OrderDate": "2024-01-15",
"Region": "North America"
}
}
],
"StartDate": "2026-08-12T14:15:59.9749345+00:00",
"StartDateUtc": "2026-08-12T14:15:59.9749345Z",
"BaseUtcOffset": 303.1,
"RecurrenceRule": null,
"LocalUsersMailTemplate": {
"Subject": "Your scheduled report is ready",
"Body": "The report you subscribed to has been generated and is attached to this email."
},
"ExternalUsersMailTemplate": {
"Subject": "Your scheduled report is ready",
"Body": "The report you subscribed to has been generated and is attached to this email."
},
"ExternalEmails": [
"maria.garcia@example.com",
"alex.johnson@example.com"
],
"SubscriberIds": [
"003c477193874d528a52cacd44f20e33",
"a2e5dc9718134bc7a6db906fc1264bf7"
]
}
Response Information
Resource Description
| Name | Description | Type | Additional information |
|---|---|---|---|
| Rules |
Specifies the data alert rules. | Collection of DataAlertRule |
Required |
| Id |
Provides the scheduled task identifier. | string |
Required |
| UserId |
Specifies the ID of the user who has created the scheduled task. | string |
None. |
| Name |
Gets or sets the scheduled task name. | string |
Required |
| Enabled |
Gets or sets whether the scheduled task is either enabled or disabled. | boolean |
None. |
| Reports |
Gets or sets the reports which are rendered by the scheduled task. | Collection of ScheduledTaskReport |
Required |
| StartDate |
Obsolete since R2 2020. Use StartDateUtc property instead. Gets or sets the start date of the scheduled task in the author local time zone. | date |
None. |
| StartDateUtc |
Gets or sets the start date of the scheduled task in UTC. | date |
None. |
| BaseUtcOffset |
Gets or sets the UTC offset to the local timezone of the scheduled task author. Used for the mail templates date time type tokens. | decimal number |
None. |
| RecurrenceRule |
Gets or sets recurrence rule for the scheduled task. | RecurrenceRule |
None. |
| LocalUsersMailTemplate |
Gets or sets the mail template for local users. Set to null to use the default template. | TaskMailTemplateModel |
None. |
| ExternalUsersMailTemplate |
Gets or sets the mail template for external users. Set to null to use the default template. | TaskMailTemplateModel |
None. |
| ExternalEmails |
Gets or sets the emails of the external users to whom the report document should be sent. | Collection of string |
None. |
| SubscriberIds |
Provides a list of IDs of the users subscribed to the data alert. | Collection of string |
None. |
Response Formats
application/json
{
"Rules": [
{
"Index": 279,
"DataItemName": "Sales Reports",
"Clauses": [
{
"Column": "TotalSales",
"Operator": "is",
"Value": "100"
},
{
"Column": "Region",
"Operator": "is",
"Value": "100"
}
]
},
{
"Index": 285,
"DataItemName": "HR Reports",
"Clauses": [
{
"Column": "Region",
"Operator": "is",
"Value": "100"
},
{
"Column": "TotalSales",
"Operator": "is",
"Value": "100"
}
]
}
],
"Id": "c81d5573f39",
"UserId": "b03a725a0b1646a8979fdecd5042a7f8",
"Name": "Marketing Reports",
"Enabled": true,
"Reports": [
{
"ReportId": "5d8ef40e8c5",
"DocumentFormat": "Pdf",
"Parameters": {
"OrderDate": "2024-01-15",
"Region": "North America"
}
},
{
"ReportId": "636f0237fd9",
"DocumentFormat": "Pdf",
"Parameters": {
"OrderDate": "2024-01-15",
"Region": "North America"
}
}
],
"StartDate": "2026-08-12T14:15:59.9749345+00:00",
"StartDateUtc": "2026-08-12T14:15:59.9749345Z",
"BaseUtcOffset": 303.1,
"RecurrenceRule": null,
"LocalUsersMailTemplate": {
"Subject": "Your scheduled report is ready",
"Body": "The report you subscribed to has been generated and is attached to this email."
},
"ExternalUsersMailTemplate": {
"Subject": "Your scheduled report is ready",
"Body": "The report you subscribed to has been generated and is attached to this email."
},
"ExternalEmails": [
"maria.garcia@example.com",
"alex.johnson@example.com"
],
"SubscriberIds": [
"003c477193874d528a52cacd44f20e33",
"a2e5dc9718134bc7a6db906fc1264bf7"
]
}