When attempting to update a user via the REST API using a PATCH request to /api/index.php/v1/users/{id}, the API consistently returns an error:
{"errors":[{"title":"Field required: Email Notifications"}]}This error occurs regardless of the payload content, even when including the sendEmail field (which represents "Email Notifications" in the Joomla admin interface).
/api/index.php/v1/users/{id}The PATCH request should update the user's data (e.g., enable/disable the user by changing the block field) when providing valid data.
This bug randomly occurs also on v5 and 4 of the cms
Every PATCH request fails with:
{"errors":[{"title":"Field required: Email Notifications"}]}curl -X GET "https://example.com/api/index.php/v1/users/356" \
-H "Accept: application/vnd.api+json" \
-H "Content-type: application/json" \
-H "X-Joomla-Token: YOUR_TOKEN"Response (successful):
{
"data": {
"type": "users",
"id": "356",
"attributes": {
"groups": {"8": 8},
"id": 356,
"name": "Test User",
"username": "testuser",
"email": "test@example.com",
"block": 0,
"sendEmail": 1,
"registerDate": "2026-01-20 18:06:37",
"lastvisitDate": null,
"lastResetTime": null,
"resetCount": 0
}
}
}curl -X PATCH "https://example.com/api/index.php/v1/users/356" \
-H "Accept: application/vnd.api+json" \
-H "Content-type: application/json" \
-H "X-Joomla-Token: YOUR_TOKEN" \
-d '{"block": 1, "sendEmail": 1, "email": "test@example.com", "groups": [8]}'Response (error):
{"errors":[{"title":"Field required: Email Notifications"}]}Over 20 different payload variations were tested, including:
{"block": 1}{"block": 1, "sendEmail": 1, "email": "test@example.com", "groups": [8]}{
"name": "Test User",
"username": "testuser",
"email": "test@example.com",
"block": 1,
"sendEmail": 1,
"groups": [8]
}{
"name": "Test User",
"username": "testuser",
"email": "test@example.com",
"block": 1,
"sendEmail": 1,
"groups": [8],
"params": {
"admin_style": "",
"admin_language": "it_IT",
"language": "",
"editor": "tinymce",
"timezone": "Europe/Rome"
}
}{"block": 1, "sendEmail": 1, "email": "test@example.com", "groups": {"8": 8}}"sendEmail": 1"sendEmail": 0"sendEmail": "1""sendEmail": true"sendEmail": falseAll variations return the same error.
/api/index.php/v1/users works correctlyAuthorization: Bearer headerThis appears similar to #38277 which discussed PATCH requirements for the user groups array in Joomla 4.x.
The error message references "Email Notifications" which corresponds to the sendEmail field in the user form, as discussed in #29342.
Investigation needed to determine:
sendEmail field validation is failing despite being provided in multiple formatsThis bug prevents:
None currently available. Users must manage user accounts directly through the Joomla admin panel.
Test Date: January 20, 2026
Reporter: External developer managing multiple Joomla sites
Verified on: Production Joomla 6.0.2 installation
| Labels |
Added:
No Code Attached Yet
|
||
| Labels |
Added:
Webservices
|
||
Can't replicate this. When attempting a simple PATCH with the payload of {"block": 1}, it shows 'Save failed with the following error: You can't save a user account without selecting at least one user group.' Using @alikon's suggestion to add the groups to the payload makes the request successful:
Can't get the 'Field required: Email Notifications' error to show using the provided instructions.
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-01-23 10:53:53 |
| Closed_By | ⇒ | alikon |
like has been already stated here #38277
{ "links": { "self": "http://host.docker.internal:7060/api/index.php/v1/users/783" }, "data": { "type": "users", "id": "783", "attributes": { "groups": { "2": 2, "3": 3, "4": 4, "5": 5 }, "id": 783, "name": "test", "username": "test", "email": "testing@somemail.com", "block": 0, "sendEmail": 1, "registerDate": "2025-11-30 11:00:46", "lastvisitDate": "2026-01-11 10:27:13", "lastResetTime": null, "resetCount": 0 } } }so you PATCH playload will be something like:
{"email":"testing@testing.com", "groups": { "2": 2, "3": 3, "4": 4, "5": 5 } }