* * 200: Display name updated successfully * 403: Not a guest * 404: Not a participant */ #[PublicPage] #[RequireParticipant] public function setDisplayName(string $displayName): DataResponse { $participant = $this->getParticipant(); if (!$participant instanceof Participant) { return new DataResponse(null, Http::STATUS_NOT_FOUND); } if (!$participant->isGuest()) { return new DataResponse(null, Http::STATUS_FORBIDDEN); } $this->guestManager->updateName($this->getRoom(), $participant, $displayName); return new DataResponse(null); } }