You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update user profile endpoints to handle custom fields, and add a new `m.profile_fields` capability,as per [MSC4133](https://github.com/matrix-org/matrix-spec-proposals/pull/4133).
1
+
Update user profile endpoints to handle custom fields, and add a new `m.profile_fields` capability,as per [MSC4133](https://github.com/matrix-org/matrix-spec-proposals/pull/4133).
Copy file name to clipboardExpand all lines: data/api/client-server/profile.yaml
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ paths:
19
19
"/profile/{userId}/{keyName}":
20
20
put:
21
21
x-changedInMatrixVersion:
22
-
"1.16": This endpoint now accepts a variable `keyName` parameter. Previously only `displayname` and `avatar_url` were accepted.
22
+
"1.16": This endpoint now accepts a variable `keyName` parameter and `m.tz` was added as a defined key. Previously only `displayname` and `avatar_url` were accepted.
23
23
summary: Set a profile field for a user.
24
24
description: |-
25
25
Set or update a profile field for a user. Must be authenticated with an
@@ -44,13 +44,13 @@ paths:
44
44
- in: path
45
45
name: keyName
46
46
description: The name of the profile field to set. This MUST be either
47
-
`avatar_url`, `displayname`, or a custom field following the
47
+
`avatar_url`, `displayname`, `m.tz`, or a custom field following the
description: A JSON object containing the property whose name matches
56
56
the `keyName` specified in the URL. See `additionalProperties` for
@@ -69,6 +69,10 @@ paths:
69
69
70
70
For `displayname`, the value MUST be a string.
71
71
72
+
For `m.tz`, the value MUST be a valid identifier from the [IANA Time Zone Database](https://www.iana.org/time-zones).
73
+
Servers MAY choose to validate the value. Clients MUST expect unknown or invalid
74
+
values.
75
+
72
76
For custom keys, any JSON type is allowed. Servers MAY not validate
73
77
these values, but clients SHOULD follow the format defined for that key.
74
78
additionalProperties: true
@@ -137,7 +141,7 @@ paths:
137
141
- User data
138
142
get:
139
143
x-changedInMatrixVersion:
140
-
"1.16": This endpoint now accepts a variable `keyName` parameter. Previously only `displayname` and `avatar_url` were accepted.
144
+
"1.16": This endpoint now accepts a variable `keyName` parameter and `m.tz` was added as a defined key. Previously only `displayname` and `avatar_url` were accepted.
141
145
summary: Get a profile field for a user.
142
146
description: Get the value of a profile field for a user.
0 commit comments