API-Referenz · On-call · Schedule entries
Create entry
Mutation
createOnCallScheduleEntryAdds an entry to a schedule.
createOnCallScheduleEntry(
organizationId: ID!
scheduleId: ID!
spec: ScheduleEntrySpecInput!
): ScheduleEntry!Argumente
Feld
Typ
Rückgabe
Feld
Typ
Beispiel
mutation CreateOnCallScheduleEntry($organizationId: ID!, $scheduleId: ID!, $spec: ScheduleEntrySpecInput!) {
createOnCallScheduleEntry(organizationId: $organizationId, scheduleId: $scheduleId, spec: $spec) {
id
spec {
startTime
endTime
recurrenceRule
exceptionDates
assignedOrgMemberId
layerId
}
}
}Beispielantwort
{
"data": {
"createOnCallScheduleEntry": {
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"spec": {
"startTime": "2026-01-01T12:00:00Z",
"endTime": "2026-01-01T12:00:00Z",
"recurrenceRule": "Example recurrenceRule",
"exceptionDates": [
"2026-01-01T12:00:00Z"
],
"assignedOrgMemberId": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"layerId": "01JB3X7T9QK2M4N6P8R0S2T4V6"
}
}
}
}Siehe auch
Mehr zu Schedule entries