Add JSON API support for timezone update (#2806)

* Add JSON API support for timezone update

* Simplify timezone controller to just head :no_content

* Use PUT instead of PATCH in timezone tests to match docs

* Use PATCH instead of PUT for timezone endpoint

Reverts tests to use patch and updates docs heading to PATCH
for consistency.
This commit is contained in:
Rob Zolkos
2026-04-08 08:41:34 -04:00
committed by GitHub
parent 6a71856b3d
commit d08aa11bfb
3 changed files with 28 additions and 0 deletions
+20
View File
@@ -44,3 +44,23 @@ __Response:__
]
}
```
## `PATCH /my/timezone`
Updates the current user's timezone. This affects how times are displayed in notification emails.
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `timezone_name` | string | Yes | IANA timezone identifier (e.g. `America/New_York`, `Europe/London`, `Asia/Tokyo`) |
__Request:__
```json
{
"timezone_name": "America/New_York"
}
```
__Response:__
Returns `204 No Content` on success.