v54

latestSwagger 2.0AGPL-3.0raw.githubusercontent.com2026-08-03397565628.8 KB
Enterprise

Update user quiet hours schedule

put/api/v2/users/{user}/quiet-hours

Path parameters

userstring uuid required

User ID

Request body

schedulestring required

Schedule is a cron expression that defines when the user's quiet hours window is. Schedule must not be empty. For new users, the schedule is set to 2am in their browser or computer's timezone. The schedule denotes the beginning of a 4 hour window where the workspace is allowed to automatically stop or restart due to maintenance or template schedule.

The schedule must be daily with a single time, and should have a timezone specified via a CRON_TZ prefix (otherwise UTC will be used).

If the schedule is empty, the user will be updated to use the default schedule.

Response

OK

nextstring date-time

Next is the next time that the quiet hours window will start.

raw_schedulestring
timestring

Time is the time of day that the quiet hours window starts in the given Timezone each day.

timezonestring

raw format from the cron expression, UTC if unspecified

user_can_setboolean

UserCanSet is true if the user is allowed to set their own quiet hours schedule. If false, the user cannot set a custom schedule and the default schedule will always be used.

user_setboolean

UserSet is true if the user has set their own quiet hours schedule. If false, the user is using the default schedule.