Not sure if I understanding (the whole rest.cpp module is a bit forgotten in my mind :) but it seems with this statement that you are always taking the tentant from HTTP header. However, this actually depends on the value of "-multitenant" CLI option.