user

Set the declared IANA timezone. Does not affect routine notifications or daily stats, which follow the device-synced timezone.

patch/user/timezone

Request

  • Base URL
    https://api.focusbear.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Request body

timezonestring required

Named IANA timezone identifier. UTC offsets such as "UTC+10:00" or "+05:00" are rejected.

Example request

{
  "timezone": "Australia/Melbourne"
}

Response

Updated timezone

timezonestring nullable required

The timezone the user has explicitly declared, or null when they have never set one. Clients should fall back to their own local zone on null rather than assuming UTC.

Example response

{
  "timezone": "Australia/Melbourne"
}

Changes

No recorded changes to this operation across all 1 revision of this API.