504 error while updating group

Describe the bug
When I try to add a user to a group via the API I get the 504 error

To Reproduce
Steps to reproduce the behavior:

curl -X 'PATCH'
'https://vpn2/api/v2/user/group'
-H 'accept: application/json'
-H 'x-api-key: '
-H 'Content-Type: application/json'
-d '{
"id": 3,
"name": "Test",
"scope": "local",
"description": "",
"member": [
"testgebruiker1"
],
"priv": null
}'

Expected behavior
That the user is added to the group

Screenshots or Response

<title>50x Error</title> <script type="text/javascript"> // </script> <script src="/vendor/jquery/jquery-3.7.1.min.js"></script> <script src="/vendor/bootstrap/js/bootstrap.min.js"></script> <script src="/vendor/bootstrap/js/bootstrap.min.js"></script> <script> $(function(){ $("#logodiv").load("logo.svg"); }); </script>

</head>

<body id="login">
	<div id="total">
		<header>
			<div id="headerrow">
				<div class="row">
					<div class="col-sm-4">
						<div id="logodiv" style="text-align:center" class="nowarning">
						</div>
					</div>
					<div class="col-sm-4 nowarning msgbox text-center text-danger">
						The web server encountered an error processing this request.<br/>
						<br/>
						Check the <a href="/crash_reporter.php">Crash Reporter</a> for details.
					</div>
					<div class="col-sm-4 nowarning msgbox text-center">
						<h4>50x Error</h4>
					</div>
				</div>
			</div>
		</header>
		<div style="background: #1e3f75;" class="pagebody">
			<div class="col-sm-4"></div>
			<div class="col-sm-4 logoCol">
				<div class="loginCont center-block text-center">
					<strong><a href="/">Return to Dashboard</a></strong>
				</div>
			</div>
			<div class="col-sm-4"></div>
		</div>
		<footer id="3">
			<div id="footertext">
				<p class="text-muted">
					<a target="_blank" href="https://pfsense.org">pfSense</a>
					software is developed and maintained by
					<a target="_blank" href="https://netgate.com">Netgate</a>.
					&copy; ESF 2004 - 2025
					<a target="_blank" href="https://pfsense.org/license">View license</a>.
				</p>
			</div>
		</footer>
	</div>
</body>

pfSense Version & Package Version:

  • pfSense Version: 25.07.1
  • Package Version: 2.6.3

Affected Endpoints:

  • URL: /api/v2/user/group