Skip to content

Commit

Permalink
Merge pull request #2928 from matrix-org/anoa/require_messages_in_sen…
Browse files Browse the repository at this point in the history
…dtodevice

Make 'messages' a required JSON body field in /sendToDevice
  • Loading branch information
turt2live committed Dec 29, 2020
2 parents f352de9 + ba7c0d7 commit 7aded5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/client-server/to_device.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ paths:
}
}
}
required: ["messages"]
responses:
200:
description:
Expand Down
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/2928.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Mark `messages` as a required JSON body field in `PUT /_matrix/client/r0/sendToDevice/{eventType}/{txnId}` calls.

0 comments on commit 7aded5b

Please sign in to comment.