I'm getting the below Payload validation error while creating an Auth0 user:
Payload validation error: 'Additional properties not allowed: $type (consider storing them in app_metadata or user_metadata. See "Users Metadata" in https://auth0.com/docs/api/v2/changes for more details)'.
Here is the payload that I am sending (redacted irrelevant information):
This is how I am making the call:
//Calling to Get the token, working fine!
var managementApiClient = new ManagementApiClient(await GetAccessTokenAsync(), _config.Domain);
// create the user in Auth0
var result = await apiRetryPolicy.ExecuteAsync(
async () =>
await managementApiClient.Users.CreateAsync(userCreateRequest)
);
return result;
The client is written in C#, and .Net Core - the main thing that I couldn't find anywhere related to this is I am sending type within the input parameters.