Update api.py

edited to add in the staff declaration on room join.