Me API
The signed-in account
GET /me
The caller's account.
Responses
200- OK. Me
application/json
PATCH /me
Updates the account's time zone, locale, name and preferences.
Request body
application/json, UpdateMe.
| Field | Type | Description |
|---|---|---|
display_name | string | null | Display name. |
locale | string | null | Locale, e.g. en-GB. |
preferences | null | Preferences | |
tz | string | null | IANA time zone. |
Responses
200- OK. Me
application/json
GET /me/hats
Every org the account belongs to, in switcher order.
Responses
200- OK. Paged_Hat
application/json
PATCH /me/hats/{org}
Sets a hat's order, colour or visibility schedule.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
org required | path | string | The org slug. |
Request body
application/json, UpdateHat.
| Field | Type | Description |
|---|---|---|
colour | string | null | Colour, e.g. #3b82f6. |
position | integer (int32) | null | Switcher order. |
visibility | Window[] | null | Hidden windows (replaces the schedule). |
Responses
200- OK. Hat
application/json