# This should be the public-facing name (ie: dns name) HOME_SERVER_URL="https://matrix.iiens.net" # The room ID is NOT the room alias. The ID can be found at the bottom of the room settings dialog in vector-web ROOM_ID="!hMtWboQDtWytpTKdNc:iiens.net" # This is your user ID and access token. The access token must match the user. USER_ID="@tchiling2012:iiens.net" # The home server should match this domain as well (ie: t2l.io as a HS should be :t2l.io in the user) ACCESS_TOKEN="INSERT TOKEN HERE" # The name for the tag, ie "Work Stuff" TAG="Assoce" # Body information for the tag, such as ordering. JSON format BODY="{}" curl -H "Content-Type: application/json" -H "Accept: application/json" -X PUT -d "$BODY" "$HOME_SERVER_URL/_matrix/client/r0/user/$USER_ID/rooms/$ROOM_ID/tags/$TAG?access_token=$ACCESS_TOKEN"