On-call
Your API key. Find it in your Spike dashboard under Settings > API.
Team ID of the team you are making the request to.
Successful response
Unauthorized
{
"customiseFor": "week",
"conditions": [
{ "fromDayOfWeek": "monday", "fromTime": "00:00", "toDayOfWeek": "tuesday", "toTime": "00:00" },
{ "fromDayOfWeek": "tuesday", "fromTime": "00:00", "toDayOfWeek": "wednesday", "toTime": "00:00" },
{ "fromDayOfWeek": "wednesday", "fromTime": "00:00", "toDayOfWeek": "thursday", "toTime": "00:00" }
]
}Your API key. Find it in the Spike dashboard under Settings → API.
REQUIRED to create an on-call — the id of the team the on-call will belong to. Must be a team in your organisation.
Provide top-level users + rotation (one primary layer) OR a layers array (takes precedence when present).
Display name for the on-call.
Rotation members for the primary layer, in rotation order.
IANA timezone for handoff times (e.g. America/New_York). Defaults to the owner timezone or Etc/UTC.
Optional description.
On-call created; the full on-call is returned
Validation error (missing name, missing x-team-id, unknown user, or bad rotation)
Unauthorized
No owner/team could be resolved for this organisation
oncallId parameter
2025-01-24T00:00:00.000ZYour API key. Find it in your Spike dashboard under Settings > API.
Team ID of the team you are making the request to.
Successful response
Unauthorized
Not found
The on-call ObjectId.
Your API key. Find it in the Spike dashboard under Settings → API.
Optional. Team to scope the request to. Defaults to your organisation's default team when omitted.
New display name.
Move the on-call to this team (ObjectId).
On-call updated; the full on-call is returned
Bad request
Unauthorized
On-call not found
{
"customiseFor": "week",
"conditions": [
{ "fromDayOfWeek": "monday", "fromTime": "00:00", "toDayOfWeek": "tuesday", "toTime": "00:00" },
{ "fromDayOfWeek": "tuesday", "fromTime": "00:00", "toDayOfWeek": "wednesday", "toTime": "00:00" },
{ "fromDayOfWeek": "wednesday", "fromTime": "00:00", "toDayOfWeek": "thursday", "toTime": "00:00" }
]
}The on-call ObjectId.
Your API key. Find it in the Spike dashboard under Settings → API.
Optional. Team to scope the request to. Defaults to your organisation's default team when omitted.
Rotation members for this layer, in order.
Optional layer description.
Layer added; the full on-call is returned
Bad request
Unauthorized
On-call not found
{
"customiseFor": "week",
"conditions": [
{ "fromDayOfWeek": "monday", "fromTime": "00:00", "toDayOfWeek": "tuesday", "toTime": "00:00" },
{ "fromDayOfWeek": "tuesday", "fromTime": "00:00", "toDayOfWeek": "wednesday", "toTime": "00:00" },
{ "fromDayOfWeek": "wednesday", "fromTime": "00:00", "toDayOfWeek": "thursday", "toTime": "00:00" }
]
}The on-call ObjectId.
The layer ObjectId (from layers[].id).
Your API key. Find it in the Spike dashboard under Settings → API.
Optional. Team to scope the request to. Defaults to your organisation's default team when omitted.
Replacement rotation members, in order (replaces the existing list).
New layer description.
Layer updated; the full on-call is returned
Bad request
Unauthorized
On-call or layer not found
The on-call ObjectId.
The layer ObjectId (from layers[].id).
Your API key. Find it in the Spike dashboard under Settings → API.
Optional. Team to scope the request to. Defaults to your organisation's default team when omitted.
Layer deleted; the full on-call is returned
Unauthorized
On-call or layer not found
Cannot delete the only remaining layer
Your API key. Find it in your Spike dashboard under Settings > API.
Team ID of the team you are making the request to.
Successful response
Unauthorized
Your API key. Find it in your Spike dashboard under Settings > API.
Team ID of the team you are making the request to.
Successful response
Unauthorized
Your API key. Find it in your Spike dashboard under Settings > API.
Team ID of the team you are making the request to.
Successful response
Unauthorized
Last updated