View and manage schedules. Manage your full schedule of on-call rotations, including the users and rotation configuration.
Get a list of schedule entries. The endpoint will return all entries that overlap with the given window, if one is provided.
OK response.
{- "pagination_meta": {
- "after": "abc123",
- "after_url": "abc123"
}, - "schedule_entries": {
- "final": [
- {
- "end_at": "2021-08-17T13:28:57.801578Z",
- "entry_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "fingerprint": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layer_id": "01G0J1EXE7AXZ2C93K61WBPYNH",
- "rotation_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "start_at": "2021-08-17T13:28:57.801578Z",
- "user": {
- "email": "lisa@incident.io",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Lisa Karlin Curtis",
- "role": "viewer",
- "slack_user_id": "U02AYNF2XJM"
}
}
], - "overrides": [
- {
- "end_at": "2021-08-17T13:28:57.801578Z",
- "entry_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "fingerprint": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layer_id": "01G0J1EXE7AXZ2C93K61WBPYNH",
- "rotation_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "start_at": "2021-08-17T13:28:57.801578Z",
- "user": {
- "email": "lisa@incident.io",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Lisa Karlin Curtis",
- "role": "viewer",
- "slack_user_id": "U02AYNF2XJM"
}
}
], - "scheduled": [
- {
- "end_at": "2021-08-17T13:28:57.801578Z",
- "entry_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "fingerprint": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layer_id": "01G0J1EXE7AXZ2C93K61WBPYNH",
- "rotation_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "start_at": "2021-08-17T13:28:57.801578Z",
- "user": {
- "email": "lisa@incident.io",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Lisa Karlin Curtis",
- "role": "viewer",
- "slack_user_id": "U02AYNF2XJM"
}
}
]
}
}
Create a new schedule override.
Created response.
{- "end_at": "2021-08-17T14:00:00.000000Z",
- "layer_id": "01G0J1EXE7AXZ2C93K61WBPYNH",
- "rotation_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "schedule_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "start_at": "2021-08-17T13:00:00.000000Z",
- "user": {
- "email": "bob@example.com",
- "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "slack_user_id": "USER123"
}
}
{- "override": {
- "created_at": "2021-08-17T13:28:57.801578Z",
- "end_at": "2021-08-17T13:28:57.801578Z",
- "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layer_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "rotation_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "schedule_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "start_at": "2021-08-17T13:28:57.801578Z",
- "updated_at": "2021-08-17T13:28:57.801578Z",
- "user": {
- "email": "lisa@incident.io",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Lisa Karlin Curtis",
- "role": "viewer",
- "slack_user_id": "U02AYNF2XJM"
}
}
}
{- "pagination_meta": {
- "after": "01FCNDV6P870EA6S7TK1DSYDG0",
- "page_size": 25,
- "total_record_count": 238
}, - "schedules": [
- {
- "annotations": {
- "incident.io/terraform/version": "3.0.0"
}, - "config": {
- "rotations": [
- {
- "effective_from": "2021-08-17T13:28:57.801578Z",
- "handover_start_at": "2021-08-17T13:28:57.801578Z",
- "handovers": [
- {
- "interval": 1,
- "interval_type": "daily"
}
], - "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layers": [
- {
- "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "name": "Layer 1"
}
], - "name": "Primary On-Call Schedule",
- "users": [
- {
- "email": "lisa@incident.io",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Lisa Karlin Curtis",
- "role": "viewer",
- "slack_user_id": "U02AYNF2XJM"
}
], - "working_interval": [
- {
- "end_time": "17:00",
- "start_time": "09:00",
- "weekday": "tuesday"
}
]
}
]
}, - "created_at": "2021-08-17T13:28:57.801578Z",
- "current_shifts": [
- {
- "end_at": "2021-08-17T13:28:57.801578Z",
- "entry_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "fingerprint": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layer_id": "01G0J1EXE7AXZ2C93K61WBPYNH",
- "rotation_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "start_at": "2021-08-17T13:28:57.801578Z",
- "user": {
- "email": "lisa@incident.io",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Lisa Karlin Curtis",
- "role": "viewer",
- "slack_user_id": "U02AYNF2XJM"
}
}
], - "holidays_public_config": {
- "country_codes": [
- "GB",
- "FR"
]
}, - "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "name": "Primary On-Call Schedule",
- "timezone": "Europe/London",
- "updated_at": "2021-08-17T13:28:57.801578Z"
}
]
}
Create a new schedule.
required | object (ScheduleCreatePayloadV2) |
Created response.
{- "schedule": {
- "annotations": {
- "incident.io/terraform/version": "version-of-terraform"
}, - "config": {
- "rotations": [
- {
- "effective_from": "2021-08-17T13:28:57.801578Z",
- "handover_start_at": "2021-08-17T13:28:57.801578Z",
- "handovers": [
- {
- "interval": 1,
- "interval_type": "daily"
}
], - "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layers": [
- {
- "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "name": "Layer 1"
}
], - "name": "My Rotation",
- "users": [
- {
- "email": "bob@example.com",
- "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "slack_user_id": "USER123"
}
], - "working_interval": [
- {
- "end_time": "17:00",
- "start_time": "09:00",
- "weekday": "tuesday"
}
]
}
]
}, - "holidays_public_config": {
- "country_codes": [
- "abc123"
]
}, - "name": "My Schedule",
- "timezone": "America/Los_Angeles"
}
}
{- "schedule": {
- "annotations": {
- "incident.io/terraform/version": "3.0.0"
}, - "config": {
- "rotations": [
- {
- "effective_from": "2021-08-17T13:28:57.801578Z",
- "handover_start_at": "2021-08-17T13:28:57.801578Z",
- "handovers": [
- {
- "interval": 1,
- "interval_type": "daily"
}
], - "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layers": [
- {
- "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "name": "Layer 1"
}
], - "name": "Primary On-Call Schedule",
- "users": [
- {
- "email": "lisa@incident.io",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Lisa Karlin Curtis",
- "role": "viewer",
- "slack_user_id": "U02AYNF2XJM"
}
], - "working_interval": [
- {
- "end_time": "17:00",
- "start_time": "09:00",
- "weekday": "tuesday"
}
]
}
]
}, - "created_at": "2021-08-17T13:28:57.801578Z",
- "current_shifts": [
- {
- "end_at": "2021-08-17T13:28:57.801578Z",
- "entry_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "fingerprint": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layer_id": "01G0J1EXE7AXZ2C93K61WBPYNH",
- "rotation_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "start_at": "2021-08-17T13:28:57.801578Z",
- "user": {
- "email": "lisa@incident.io",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Lisa Karlin Curtis",
- "role": "viewer",
- "slack_user_id": "U02AYNF2XJM"
}
}
], - "holidays_public_config": {
- "country_codes": [
- "GB",
- "FR"
]
}, - "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "name": "Primary On-Call Schedule",
- "timezone": "Europe/London",
- "updated_at": "2021-08-17T13:28:57.801578Z"
}
}
{- "schedule": {
- "annotations": {
- "incident.io/terraform/version": "3.0.0"
}, - "config": {
- "rotations": [
- {
- "effective_from": "2021-08-17T13:28:57.801578Z",
- "handover_start_at": "2021-08-17T13:28:57.801578Z",
- "handovers": [
- {
- "interval": 1,
- "interval_type": "daily"
}
], - "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layers": [
- {
- "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "name": "Layer 1"
}
], - "name": "Primary On-Call Schedule",
- "users": [
- {
- "email": "lisa@incident.io",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Lisa Karlin Curtis",
- "role": "viewer",
- "slack_user_id": "U02AYNF2XJM"
}
], - "working_interval": [
- {
- "end_time": "17:00",
- "start_time": "09:00",
- "weekday": "tuesday"
}
]
}
]
}, - "created_at": "2021-08-17T13:28:57.801578Z",
- "current_shifts": [
- {
- "end_at": "2021-08-17T13:28:57.801578Z",
- "entry_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "fingerprint": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layer_id": "01G0J1EXE7AXZ2C93K61WBPYNH",
- "rotation_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "start_at": "2021-08-17T13:28:57.801578Z",
- "user": {
- "email": "lisa@incident.io",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Lisa Karlin Curtis",
- "role": "viewer",
- "slack_user_id": "U02AYNF2XJM"
}
}
], - "holidays_public_config": {
- "country_codes": [
- "GB",
- "FR"
]
}, - "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "name": "Primary On-Call Schedule",
- "timezone": "Europe/London",
- "updated_at": "2021-08-17T13:28:57.801578Z"
}
}
{- "schedule": {
- "annotations": {
- "incident.io/terraform/version": "version-of-terraform"
}, - "config": {
- "rotations": [
- {
- "effective_from": "2021-08-17T13:28:57.801578Z",
- "handover_start_at": "2021-08-17T13:28:57.801578Z",
- "handovers": [
- {
- "interval": 1,
- "interval_type": "daily"
}
], - "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layers": [
- {
- "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "name": "Layer 1"
}
], - "name": "My Rotation",
- "users": [
- {
- "email": "bob@example.com",
- "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "slack_user_id": "USER123"
}
], - "working_interval": [
- {
- "end_time": "17:00",
- "start_time": "09:00",
- "weekday": "tuesday"
}
]
}
]
}, - "holidays_public_config": {
- "country_codes": [
- "abc123"
]
}, - "name": "My Schedule",
- "timezone": "America/Los_Angeles"
}
}
{- "schedule": {
- "annotations": {
- "incident.io/terraform/version": "3.0.0"
}, - "config": {
- "rotations": [
- {
- "effective_from": "2021-08-17T13:28:57.801578Z",
- "handover_start_at": "2021-08-17T13:28:57.801578Z",
- "handovers": [
- {
- "interval": 1,
- "interval_type": "daily"
}
], - "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layers": [
- {
- "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "name": "Layer 1"
}
], - "name": "Primary On-Call Schedule",
- "users": [
- {
- "email": "lisa@incident.io",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Lisa Karlin Curtis",
- "role": "viewer",
- "slack_user_id": "U02AYNF2XJM"
}
], - "working_interval": [
- {
- "end_time": "17:00",
- "start_time": "09:00",
- "weekday": "tuesday"
}
]
}
]
}, - "created_at": "2021-08-17T13:28:57.801578Z",
- "current_shifts": [
- {
- "end_at": "2021-08-17T13:28:57.801578Z",
- "entry_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "fingerprint": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "layer_id": "01G0J1EXE7AXZ2C93K61WBPYNH",
- "rotation_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "start_at": "2021-08-17T13:28:57.801578Z",
- "user": {
- "email": "lisa@incident.io",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Lisa Karlin Curtis",
- "role": "viewer",
- "slack_user_id": "U02AYNF2XJM"
}
}
], - "holidays_public_config": {
- "country_codes": [
- "GB",
- "FR"
]
}, - "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
- "name": "Primary On-Call Schedule",
- "timezone": "Europe/London",
- "updated_at": "2021-08-17T13:28:57.801578Z"
}
}