From 2940bec64501e21181ae38b393d8409b5f0060d5 Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Wed, 17 Nov 2021 12:13:24 +0000 Subject: Remove erroneous v1.45.0 docs folder (#11367) --- v1.45.0/admin_api/server_notices.html | 286 ---------------------------------- 1 file changed, 286 deletions(-) delete mode 100644 v1.45.0/admin_api/server_notices.html (limited to 'v1.45.0/admin_api/server_notices.html') diff --git a/v1.45.0/admin_api/server_notices.html b/v1.45.0/admin_api/server_notices.html deleted file mode 100644 index 40abf53bd3..0000000000 --- a/v1.45.0/admin_api/server_notices.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - - - Server Notices - Synapse - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - -
-
- -
- -
- -

Server Notices

-

The API to send notices is as follows:

-
POST /_synapse/admin/v1/send_server_notice
-
-

or:

-
PUT /_synapse/admin/v1/send_server_notice/{txnId}
-
-

You will need to authenticate with an access token for an admin user.

-

When using the PUT form, retransmissions with the same transaction ID will be -ignored in the same way as with PUT /_matrix/client/r0/rooms/{roomId}/send/{eventType}/{txnId}.

-

The request body should look something like the following:

-
{
-    "user_id": "@target_user:server_name",
-    "content": {
-        "msgtype": "m.text",
-        "body": "This is my message"
-    }
-}
-
-

You can optionally include the following additional parameters:

-
    -
  • type: the type of event. Defaults to m.room.message.
  • -
  • state_key: Setting this will result in a state event being sent.
  • -
-

Once the notice has been sent, the API will return the following response:

-
{
-    "event_id": "<event_id>"
-}
-
-

Note that server notices must be enabled in homeserver.yaml before this API -can be used. See the server notices documentation for more information.

- -
- - -
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file -- cgit 1.5.1