Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# This should be the public-facing name (ie: dns name)
# The room ID is NOT the room alias. The ID can be found at the bottom of the room settings dialog in riot-web
# This is your user ID and access token. The access token must match the user.
USER_ID="" # The home server should match this domain as well (ie: as a HS should be in the user)
# The name for the tag, ie "Work Stuff". Needs to be manually encoded
# Body information for the tag, such as ordering. JSON format
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment