---
title: "Updates the scheduled sending rules for a template's workflow definition."
method: PUT
path: "/v2.1/accounts/{accountId}/templates/{templateId}/workflow/scheduledSending"
tags: ["EnvelopeWorkflowDefinition"]
---

# Updates the scheduled sending rules for a template's workflow definition.

`PUT /v2.1/accounts/{accountId}/templates/{templateId}/workflow/scheduledSending`

## Request

- Base URL: `https://www.docusign.net/restapi`
- URL: `https://www.docusign.net/restapi/v2.1/accounts/{accountId}/templates/{templateId}/workflow/scheduledSending`
- Auth: none declared

## Path parameters

- `accountId` string, required
- `templateId` string, required

## Request body

- ScheduledSending: A complex element that specifies the scheduled sending settings for the envelope.
  - `bulkListId` string: The ID of the bulk list. Set this optional value to use scheduled sending with a bulk send operation.
  - `resumeDate` string: The timestamp of when the envelope is scheduled to be sent in ISO 8601 format. This property is read-only.
  - `rules` EnvelopeDelayRule[]: User-specified rules indicating how and when the envelope should be scheduled for sending. Only one rule may be specified.
    - `delay` string: A string timespan representing the duration of the sending delay. The timespan is in the format `d.hh:mm:ss` where `d` is the number of days, `hh` is the number of hours (measured on a 24-hour clock), `mm` is minutes, and `ss` is seconds. The maximum delay is 30 days.
    - `resumeDate` string: An ISO 8601 formatted datetime string indicating the date and time that the envelope will be sent. The specified datetime must occur in the future. It must not exceed 30 days from the time that the request is made.
  - `status` string: Status of the scheduled sending job. Valid values: * `pending`: The envelope has not yet been sent and the scheduled sending delay has not been initiated. * `started`: The sender has initiated the sending process. The delay has not elapsed, so the envelope has not yet been sent to the first recipient. * `completed`: The delay has elapsed and the envelope has been sent to the first recipient. This property is read-only.

## Response `200`

Successful response.

## Other responses

- `400`: Error encountered.

## Changes

- **2022-09-15** (v2) `df4506977b42`: 1 info
  - endpoint added
- **2019-07-18** (v2) `8ad1b5a40f1b`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/changes/v2.1/accounts/:accountId/templates/:templateId/workflow/scheduledSending/put.md)

---

[API](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api.md) - [All operations](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/revisions/77f1998c313d?raw)
