Sandbox error when trying to update/patch username via Management API

While running a query to PATCH a user’s username, I keep getting a fairly cryptic error about ‘Value’.

url = "https://buildops-prod.us.auth0.com/api/v2/users/auth0%7Cfd28b74d-3fb5-4f87-be5f-8ce0addd559e"
headers = {
 'Content-Type': 'application/json',
  'Accept': 'application/json',
 'Authorization': f'Bearer {management_api_token}'
}
data = { "username": "<new_username>" }
response = requests.patch(url, headers=headers, data=data)

Error:
{"statusCode":400,"error":"Bad Request","message":"Sandbox Error: Cannot read properties of undefined (reading 'Value')"}

This endpoint works inside of the testing API page here:
https://auth0.com/docs/api/management/v2/users/patch-users-by-id

For context, I’ve also tried this with the Auth0 python SDK (==4.7.0), with the same error.