younifyd
Menu

Update Schedule

Update a schedule

PUT/schedules/{id}

Use it in a workflow

  1. Add a step and choose the PagerDuty connector.
  2. Pick the Update Schedule action (under Schedules).
  3. Fill in the fields below, then reference the result from later steps as {{updateSchedule.response.data}}.

Request

Path parameters

idstringrequired

The ID of the resource.

Query parameters

overflowboolean

Any on-call schedule entries that pass the date range bounds will be truncated at the bounds, unless the parameter `overflow=true` is passed. This parameter defaults to false. For instance, if your schedule is a rotation that changes daily at midnight UTC, and your date range is from `2011-06-01T10:00:00Z` to `2011-06-01T14:00:00Z`: - If you don't pass the `overflow=true` parameter, you will get one schedule entry returned with a start of `2011-06-01T10:00:00Z` and end of `2011-06-01T14:00:00Z`. - If you do pass the `overflow=true` parameter, you will get one schedule entry returned with a start of `2011-06-01T00:00:00Z` and end of `2011-06-02T00:00:00Z`.

Default false

Headers

Acceptstringrequired

The `Accept` header is used as a versioning header.

Default "application/vnd.pagerduty+json;version=2"

Content-Typestringrequired

One ofapplication/jsonDefault "application/json"

Request body

Enter the body as JSON in the step's Body field.

scheduleanyrequired
json
{
  "schedule": null
}

Response

Returns 200 with an object. Read it in later steps with {{updateSchedule.response.data.<field>}}.

scheduleany
json
{
  "schedule": null
}

Need more? See the PagerDuty guide for connection setup and behaviour shared by every action.

Was this page helpful?