Clarify that homeserver must reject clients from setting m.fully_read

This commit is contained in:
Travis Ralston 2018-08-31 11:13:32 -06:00
parent 2e8151999e
commit f6d9e53f5c
2 changed files with 7 additions and 22 deletions

View file

@ -67,17 +67,6 @@ paths:
200: 200:
description: description:
The account_data was successfully added. The account_data was successfully added.
405:
description:
The account data event type cannot be set here. This generally indicates
that another API is available for managing the data contained in the event.
schema:
$ref: "definitions/errors/error.yaml"
examples:
application/json: {
"errcode": "M_UNKNOWN",
"error": "Cannot set m.fully_read through this API. Use /rooms/{roomId}/read_markers"
}
tags: tags:
- User data - User data
"/user/{userId}/rooms/{roomId}/account_data/{type}": "/user/{userId}/rooms/{roomId}/account_data/{type}":
@ -127,16 +116,5 @@ paths:
200: 200:
description: description:
The account_data was successfully added. The account_data was successfully added.
405:
description:
The account data event type cannot be set here. This generally indicates
that another API is available for managing the data contained in the event.
schema:
$ref: "definitions/errors/error.yaml"
examples:
application/json: {
"errcode": "M_UNKNOWN",
"error": "Cannot set m.fully_read through this API. Use /rooms/{roomId}/read_markers"
}
tags: tags:
- User data - User data

View file

@ -39,3 +39,10 @@ Client Behaviour
---------------- ----------------
{{account_data_cs_http_api}} {{account_data_cs_http_api}}
Server Behaviour
----------------
Servers MUST reject clients from setting account data for event types that
the server manages. Currently, this only includes `m.fully_read`_.