From bf6393f5a8057d57dee034d3dd546955cd12b434 Mon Sep 17 00:00:00 2001 From: erikjohnston Date: Tue, 6 Jun 2023 09:50:03 +0000 Subject: deploy: ec71214243eac58a4a6d272c15441a6405f6ae9c --- latest/admin_api/user_admin_api.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'latest/admin_api') diff --git a/latest/admin_api/user_admin_api.html b/latest/admin_api/user_admin_api.html index 55af2cadb6..c7322cb65f 100644 --- a/latest/admin_api/user_admin_api.html +++ b/latest/admin_api/user_admin_api.html @@ -878,6 +878,26 @@ devices was last seen. (May be a few minutes out of date, for efficiency reasons

total - Total number of user's devices.

+

Create a device

+

Creates a new device for a specific user_id and device_id. Does nothing if the device_id +exists already.

+

The API is:

+
POST /_synapse/admin/v2/users/<user_id>/devices
+
+{
+  "device_id": "QBUAZIFURK"
+}
+
+

An empty JSON dict is returned.

+

Parameters

+

The following parameters should be set in the URL:

+ +

The following fields are required in the JSON request body:

+

Delete multiple devices

Deletes the given devices for a specific user_id, and invalidates any access token associated with them.

-- cgit 1.5.1