matrix-api-calls/purge_history_status
2023-01-18 00:21:00 +00:00

26 lines
445 B
Bash
Executable File

#!/bin/bash
usage() {
echo "Not enough arguments supplied."
echo "Syntax: $(basename $0) {statusid}"
echo
}
if [[ $# -lt 1 ]]; then
usage
exit 1
fi
. $(dirname $0)/auth
SID=$1
echo "Using status_id: ${SID}"
curl -s -X GET \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
"http://localhost:8008/_synapse/admin/v1/purge_history_status/${SID}" \
# | sed 's/,/,\n /g; s/{/{\n /g; s/}/\n}/g'
echo