Sign in

Update schedule

documented

Update a schedule.

PUT /schedules/{schedule_id}Schedulesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.pagerduty.com/schedules/{{$schedule_id}}" \
  -X PUT \
  -H "Accept: application/vnd.pagerduty+json;version=2" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -d '{"schedule": {"name": "{{$name}}", "time_zone": "{{$time_zone}}", "schedule_layers": [ {"name": "{{$layer_name}}", "start": "{{$start}}", "end": "{{$end}}", "users": [ {"id": "{{$user_id}}", "type": "user_reference"} ], "restrictions": [ {"type": "daily_restriction", "start_time_of_day": "{{$start_time_of_day}}", "duration_seconds": {{$duration_seconds}} } ], "rotation_virtual_start": "{{$rotation_virtual_start}}", "rotation_turn_length_seconds": {{$rotation_turn_length_seconds}} } ] } }'"