API-Referenz · Notifications · Notification schedules
Create notification schedule
Mutation
createNotificationScheduleCreates a notification schedule for an organization member. A member can have at most three schedules.
createNotificationSchedule(
organizationId: ID!
memberId: ID!
spec: NotificationScheduleSpec!
): NotificationSchedule!Argumente
Feld
Typ
Rückgabe
Feld
Typ
Beispiel
mutation CreateNotificationSchedule($organizationId: ID!, $memberId: ID!, $spec: NotificationScheduleSpec!) {
createNotificationSchedule(organizationId: $organizationId, memberId: $memberId, spec: $spec) {
id
name
description
cronExpression
type
enabled
}
}Beispielantwort
{
"data": {
"createNotificationSchedule": {
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"name": "Example name",
"description": "Example description",
"cronExpression": "Example cronExpression",
"type": "SUMMARY",
"enabled": true
}
}
}