API-Referenz · On-call · Schedules
Get on-call information
Query
onCallInformationReturns the shifts in progress right now and the caller's upcoming shifts.
onCallInformation(
organizationId: ID!
publicTeamId: Int
): OnCallInformation!Argumente
Feld
Typ
Rückgabe
Feld
Typ
Beispiel
query OnCallInformation($organizationId: ID!, $publicTeamId: Int) {
onCallInformation(organizationId: $organizationId, publicTeamId: $publicTeamId) {
ongoingShifts {
id
startTime
endTime
}
myUpcomingShifts {
id
startTime
endTime
}
}
}Beispielantwort
{
"data": {
"onCallInformation": {
"ongoingShifts": [
{
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"startTime": "2026-01-01T12:00:00Z",
"endTime": "2026-01-01T12:00:00Z"
}
],
"myUpcomingShifts": [
{
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"startTime": "2026-01-01T12:00:00Z",
"endTime": "2026-01-01T12:00:00Z"
}
]
}
}
}Siehe auch
Mehr zu Schedules