

@defer.inlineCallbacks
def on_PUT(self, request, user_id, room_id, tag):
    requester = (yield self.auth.get_user_by_req(request))
    if (user_id != requester.user.to_string()):
        raise AuthError(403, 'Cannot add tags for other users.')
    body = parse_json_object_from_request(request)
    max_id = (yield self.store.add_tag_to_room(user_id, room_id, tag, body))
    self.notifier.on_new_event('account_data_key', request, users=[user_id])
    defer.returnValue((200, {
        
    }))

dataset/ETHPy150Open matrix-org/synapse/synapse/rest/client/v2_alpha/tags.py TagServlet.on_PUT/VarMisuse@96/147 `max_id`->`request`