summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2022-10-31 20:31:43 +0000
committerGitHub <noreply@github.com>2022-10-31 20:31:43 +0000
commitdbfc9b803ee32f7b31c2b5ccbc53a1bfcaa95983 (patch)
treee59a0e29c0a839a62a437626eee705ec19323ead /synapse/rest/client
parentSupport OIDC backchannel logouts (#11414) (diff)
downloadsynapse-dbfc9b803ee32f7b31c2b5ccbc53a1bfcaa95983.tar.xz
Fix dehydrated device REST checks (#14336)
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/devices.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/rest/client/devices.py b/synapse/rest/client/devices.py
index 90828c95c4..8f3cbd4ea2 100644
--- a/synapse/rest/client/devices.py
+++ b/synapse/rest/client/devices.py
@@ -231,7 +231,7 @@ class DehydratedDeviceServlet(RestServlet):
       }
     }
 
-    PUT /org.matrix.msc2697/dehydrated_device
+    PUT /org.matrix.msc2697.v2/dehydrated_device
     Content-Type: application/json
 
     {
@@ -271,7 +271,6 @@ class DehydratedDeviceServlet(RestServlet):
             raise errors.NotFoundError("No dehydrated device available")
 
     class PutBody(RequestBodyModel):
-        device_id: StrictStr
         device_data: DehydratedDeviceDataModel
         initial_device_display_name: Optional[StrictStr]
 
@@ -281,7 +280,7 @@ class DehydratedDeviceServlet(RestServlet):
 
         device_id = await self.device_handler.store_dehydrated_device(
             requester.user.to_string(),
-            submission.device_data,
+            submission.device_data.dict(),
             submission.initial_device_display_name,
         )
         return 200, {"device_id": device_id}