Discussions

Ask a Question
Back to All

Set Group DND for user

The GET method for user details will outline the group_details for every department/company and shows the proper do_not_disturb for that department (not the user). But I don't see the parameter to change that in the PATCH method to update that parameter in the groups.

Are there any unlisted settings, or can we just provide it in the PATCH method regardless? I haven't been able to figure that out yet.

In this example response from the GET method, they're only currently getting calls for the second group, and not for the first (main line) or third.

    "group_details": [
        {
            "do_not_disturb": true,
            "group_id": "removed",
            "group_type": "office",
            "role": "admin"
        },
        {
            "do_not_disturb": false,
            "group_id": "removed",
            "group_type": "department",
            "role": "admin"
        },
        {
            "do_not_disturb": true,
            "group_id": "removed",
            "group_type": "department",
            "role": "admin"
        }
    ],

The use case here is we want a specific user to only get calls for that department during specific hours, but we don't want to remove/add them to the group every day.

Thanks!