Build Restriction Object

Build a new PagerDuty restriction object for use as an input value with the Update Schedule action card for PagerDuty. A restriction is a limit on which period of the day or week the schedule layer can accept assignments.

Options

Field Definition Type Required
Restriction Type Choose one of the following options for the time length of a restriction object:
  • Daily Restriction: Restriction object is for a specific day of the week.

  • Weekly Restriction: Restriction object is for a week; the start day of the week must be specified as an input field.

Dropdown TRUE

Input

Field Definition Type Required
Restriction
Type Specified type of restriction; options Daily Restriction and Weekly Restriction. Dropdown TRUE
Duration Seconds Duration of the restriction in seconds. Number TRUE
Start Time of Day Start time in HH:mm:ss format. String TRUE
Start Day of Week Only required for use with a weekly restriction restriction type. The first day of the weekly rotation schedule as ISO 8601 day (1 is Monday, and so forth). Number FALSE

Output

Field Definition Type
Restriction Resulting restriction object.

Example:

Copy
{
"Type":"daily_restriction",
"Duration Seconds":3600,
"Start Time Of Day":"12:31:23Z",
"Start Day Of Week":null}
}
Object

Related topics

PagerDuty connector

Workflow elements

PagerDuty REST API