Event API development Team API syntax changes

fixed team syntax errors and create event API