Skip to content

Commit bac9afa

Browse files
committed
document error codes and remove a statement that isn't true
1 parent 0b39308 commit bac9afa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

proposals/2526-add-delete-backup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ delete an entire key backup. This proposal adds the endpoint.
88

99
An endpoint is added, `DELETE /room_keys/version/{version}`, that deletes a
1010
backup version. Both the information about the key backup, as well as all keys
11-
associated with the backup should be deleted. Like `POST
12-
/room_keys/version/{version}`, and unlike `GET /room_keys/version/{version}`,
13-
`{version}` cannot be empty, to ensure that the wrong backup is not
14-
accidentally deleted.
11+
associated with the backup should be deleted. If the specified version was
12+
previously deleted, the endpoint succeeds, returning an HTTP code of 200. If
13+
the specified version never existed, the endpoint returns an HTTP code of 404
14+
with a Matrix `errcode` of `M_NOT_FOUND`.

0 commit comments

Comments
 (0)