Update Member Space Notification Settings
updateMemberSpaceNotificationSettings
mutation is used to update a member's preference for notification settings of a space.
There are different channels for the notification settings (e.g IN_APP
, EMAIL
, DESKTOP
, etc) and
each channel can possibly have different settings. When updating the notification settings you have the options
to enable/disable it completely, set a preference, or set to follow the default notification settings of the space.
You need to provide the id
of the space.
- GraphQL
- JS Client
mutation {
updateMemberSpaceNotificationSettings(
channel: EMAIL,
spaceId: "ChLtv0osEWyi"
input: {
enabled: true,
preference: NEW_POST,
}
) {
channel
enabled
preference
}
}
client.mutation({
name: 'updateMemberSpaceNotificationSettings',
args: {
variables: {
channel: NotificationChannel.EMAIL,
spaceId: 'ChLtv0osEWyi',
input: {
enabled: true,
preference: SpaceNotificationPreference.NEW_POST,
},
},
fields: 'basic',
},
})
This will update the space notification settings only for you.