Sign in

Create schedule

documented

Create a new schedule.

POST /schedulesSchedulesno 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 "{{$base_url}}/schedules?overflow=false" \
  -X POST \
  -H "Authorization: Token token={{PAGERDUTY_API_KEY}}" \
  -H "Accept: application/vnd.pagerduty+json;version=2" \
  -H "Content-Type: application/json" \
  -d '{"schedule": {"name": "{{$schedule_name}}", "time_zone": "{{$time_zone}}", "description": "{{$description}}", "layers": [ { "start": "{{$layer_start}}", "rotation": { "type": "weekly", "start_time": "{{$handoff_time}}", "users": [ { "user": { "id": "{{$user_id}}" } } ] } } ] }}'"