API call gives "Match error: Unknown key in field"

I’m trying to set a users enableAutoAway from false to true but i’m getting this message. Any help would be appreciated. Thanks!

“success”: false,
“error”: “Match error: Unknown key in field {“userId”: “regularuserid”, “enableAutoAway”: “true”}”

Here is the call:

curl -H “X-Auth-Token: adminauthtoken”
-H “X-User-Id: adminuserid”
-d ‘{“userId”: “regularuserid”, “enableAutoAway”: “true”}’
http://localhost:3000/api/v1/users.setPreferences
| jq

Syntax error resolved through trial and error.

curl -H “X-Auth-Token: adminauthtoken”
-H “X-User-Id: adminuserid”
-d ‘{“userId”: “regularuserid”, “data”:{ “enableAutoAway”: true } }’
http://localhost:3000/api/v1/users.setPreferences
| jq