<h1>PUT api/reportserver/v3/scheduled-tasks/{scheduledTaskId}</h1>
<div>
<p>
Updates the scheduled task with the specified ID.
</p>

<h2>Request Information</h2>

<h3>URI Parameters</h3>
<table class="help-page-table">
<thead>
<tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
</thead>
<tbody>
<tr>
<td class="parameter-name">scheduledTaskId</td>
<td class="parameter-documentation">
<p>The scheduled task ID.</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
</tbody>
</table>

<h3>Body Parameters</h3>

<p></p>

<a href="/dotnet-docs/rest-api/v3/scheduledtaskcreatedata">ScheduledTaskCreateData</a>

<table class="help-page-table">
<thead>
<tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
</thead>
<tbody>
<tr>
<td class="parameter-name">Name</td>
<td class="parameter-documentation">
<p>
Gets or sets the scheduled task name.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
<tr>
<td class="parameter-name">Enabled</td>
<td class="parameter-documentation">
<p>
Gets or sets whether the scheduled task is either enabled or disabled.
</p>
</td>
<td class="parameter-type">
boolean

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">Reports</td>
<td class="parameter-documentation">
<p>
Gets or sets the reports which are rendered by the scheduled task.
</p>
</td>
<td class="parameter-type">
Collection of <a href="/dotnet-docs/rest-api/v3/scheduledtaskreport">ScheduledTaskReport</a>

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
<tr>
<td class="parameter-name">StartDate</td>
<td class="parameter-documentation">
<p>
Obsolete since R2 2020. Use StartDateUtc property instead.
Gets or sets the start date of the scheduled task in the author local time zone.
</p>
</td>
<td class="parameter-type">
date

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">StartDateUtc</td>
<td class="parameter-documentation">
<p>
Gets or sets the start date of the scheduled task in UTC.
</p>
</td>
<td class="parameter-type">
date

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">BaseUtcOffset</td>
<td class="parameter-documentation">
<p>
Gets or sets the UTC offset to the local timezone of the
scheduled task author.
Used for the mail templates date time type tokens.
</p>
</td>
<td class="parameter-type">
decimal number

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">RecurrenceRule</td>
<td class="parameter-documentation">
<p>
Gets or sets recurrence rule for the scheduled task.
</p>
</td>
<td class="parameter-type">
<a href="/dotnet-docs/rest-api/v3/recurrencerule">RecurrenceRule</a>

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">LocalUsersMailTemplate</td>
<td class="parameter-documentation">
<p>
Gets or sets the mail template for local users. Set to null to use the default template.
</p>
</td>
<td class="parameter-type">
<a href="/dotnet-docs/rest-api/v3/taskmailtemplatemodel">TaskMailTemplateModel</a>

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">ExternalUsersMailTemplate</td>
<td class="parameter-documentation">
<p>
Gets or sets the mail template for external users. Set to null to use the default template.
</p>
</td>
<td class="parameter-type">
<a href="/dotnet-docs/rest-api/v3/taskmailtemplatemodel">TaskMailTemplateModel</a>

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">ExternalEmails</td>
<td class="parameter-documentation">
<p>
Gets or sets the emails of the external users to whom the report document should be sent.
</p>
</td>
<td class="parameter-type">
Collection of string

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">SubscriberIds</td>
<td class="parameter-documentation">
<p>
Provides a list of IDs of the users subscribed to the data alert.
</p>
</td>
<td class="parameter-type">
Collection of string

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
</tbody>
</table>
<h3>Request body formats</h3>
<div>
<h4 class="sample-header">application/json, text/json, application/*+json</h4>
<div class="sample-content">

```json
{
  "Name": "Marketing Reports",
  "Enabled": true,
  "Reports": [
    {
      "ReportId": "f36ed9a0c45",
      "DocumentFormat": "Pdf",
      "Parameters": {
        "OrderDate": "2024-01-15",
        "Region": "North America"
      }
    },
    {
      "ReportId": "16ed3ea1759",
      "DocumentFormat": "Pdf",
      "Parameters": {
        "OrderDate": "2024-01-15",
        "Region": "North America"
      }
    }
  ],
  "StartDate": "2026-11-25T14:03:03.765279+00:00",
  "StartDateUtc": "2026-11-25T14:03:03.765279Z",
  "BaseUtcOffset": 559.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": [
    "9a8c8cdc4faf4fc79e576c2a90ea7eff",
    "39ae3e5cc9ca438680022b39ae2bc6cb"
  ]
}
```

</div>
</div>

<h2>Response Information</h2>

<h3>Resource Description</h3>

<p></p>

<a href="/dotnet-docs/rest-api/v3/scheduledtask">ScheduledTask</a>

<table class="help-page-table">
<thead>
<tr><th>Name</th><th>Description</th><th>Type</th><th>Additional information</th></tr>
</thead>
<tbody>
<tr>
<td class="parameter-name">Id</td>
<td class="parameter-documentation">
<p>
Provides the scheduled task identifier.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
<tr>
<td class="parameter-name">UserId</td>
<td class="parameter-documentation">
<p>
Specifies the ID of the user who has created the scheduled task.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">Name</td>
<td class="parameter-documentation">
<p>
Gets or sets the scheduled task name.
</p>
</td>
<td class="parameter-type">
string

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
<tr>
<td class="parameter-name">Enabled</td>
<td class="parameter-documentation">
<p>
Gets or sets whether the scheduled task is either enabled or disabled.
</p>
</td>
<td class="parameter-type">
boolean

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">Reports</td>
<td class="parameter-documentation">
<p>
Gets or sets the reports which are rendered by the scheduled task.
</p>
</td>
<td class="parameter-type">
Collection of <a href="/dotnet-docs/rest-api/v3/scheduledtaskreport">ScheduledTaskReport</a>

</td>
<td class="parameter-annotations">
<p>Required</p>
</td>
</tr>
<tr>
<td class="parameter-name">StartDate</td>
<td class="parameter-documentation">
<p>
Obsolete since R2 2020. Use StartDateUtc property instead.
Gets or sets the start date of the scheduled task in the author local time zone.
</p>
</td>
<td class="parameter-type">
date

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">StartDateUtc</td>
<td class="parameter-documentation">
<p>
Gets or sets the start date of the scheduled task in UTC.
</p>
</td>
<td class="parameter-type">
date

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">BaseUtcOffset</td>
<td class="parameter-documentation">
<p>
Gets or sets the UTC offset to the local timezone of the
scheduled task author.
Used for the mail templates date time type tokens.
</p>
</td>
<td class="parameter-type">
decimal number

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">RecurrenceRule</td>
<td class="parameter-documentation">
<p>
Gets or sets recurrence rule for the scheduled task.
</p>
</td>
<td class="parameter-type">
<a href="/dotnet-docs/rest-api/v3/recurrencerule">RecurrenceRule</a>

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">LocalUsersMailTemplate</td>
<td class="parameter-documentation">
<p>
Gets or sets the mail template for local users. Set to null to use the default template.
</p>
</td>
<td class="parameter-type">
<a href="/dotnet-docs/rest-api/v3/taskmailtemplatemodel">TaskMailTemplateModel</a>

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">ExternalUsersMailTemplate</td>
<td class="parameter-documentation">
<p>
Gets or sets the mail template for external users. Set to null to use the default template.
</p>
</td>
<td class="parameter-type">
<a href="/dotnet-docs/rest-api/v3/taskmailtemplatemodel">TaskMailTemplateModel</a>

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">ExternalEmails</td>
<td class="parameter-documentation">
<p>
Gets or sets the emails of the external users to whom the report document should be sent.
</p>
</td>
<td class="parameter-type">
Collection of string

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
<tr>
<td class="parameter-name">SubscriberIds</td>
<td class="parameter-documentation">
<p>
Provides a list of IDs of the users subscribed to the data alert.
</p>
</td>
<td class="parameter-type">
Collection of string

</td>
<td class="parameter-annotations">
<p>None.</p>
</td>
</tr>
</tbody>
</table>

<h3>Response Formats</h3>
<div>
<h4 class="sample-header">application/json</h4>
<div class="sample-content">

```json
{
  "Id": "c4084ca47d6",
  "UserId": "9567b68d90444765a9ecf534af5356bc",
  "Name": "Marketing Reports",
  "Enabled": true,
  "Reports": [
    {
      "ReportId": "f36ed9a0c45",
      "DocumentFormat": "Pdf",
      "Parameters": {
        "OrderDate": "2024-01-15",
        "Region": "North America"
      }
    },
    {
      "ReportId": "16ed3ea1759",
      "DocumentFormat": "Pdf",
      "Parameters": {
        "OrderDate": "2024-01-15",
        "Region": "North America"
      }
    }
  ],
  "StartDate": "2026-11-25T14:03:03.765279+00:00",
  "StartDateUtc": "2026-11-25T14:03:03.765279Z",
  "BaseUtcOffset": 559.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": [
    "9a8c8cdc4faf4fc79e576c2a90ea7eff",
    "39ae3e5cc9ca438680022b39ae2bc6cb"
  ]
}
```

</div>
</div>
</div>
