fix invitation action format to fit api