matrix.sh - adapt room delete to new ROOM API version
This commit is contained in:
@@ -405,9 +405,9 @@ step_28() {
|
||||
|
||||
echo " [I] Deleting room with ID: $roomId"
|
||||
|
||||
local apiCall="http://${synapseIP}:8008/_synapse/admin/v1/rooms/$roomId/delete"
|
||||
local apiCall="http://${synapseIP}:8008/_synapse/admin/v2/rooms/$roomId"
|
||||
exep "curl -sS --header \"Authorization: Bearer $MATRIX_ACCESS\" \
|
||||
-X POST \
|
||||
-X DELETE \
|
||||
-H \"Content-Type: application/json\" -d \"{}\" \
|
||||
\"$apiCall\" | python -m json.tool"
|
||||
|
||||
|
Reference in New Issue
Block a user