I get an error in response:
{“errorCode”:“invalid_body”,“error”:“Bad Request”,“message”:“Payload validation error: ‘Missing required property: connection’.”,“statusCode”:400}
The response doesn’t provide any meaningful information to resolve the issue.
The error means you’re missing the connection property in the body of your request. As stated in the [Create a user] (Auth0 Management API v2) management API documentation:
The attribute connection is always
mandatory but depending on the type of
connection you are using there could
be others too.
Taking the example from the [link] (Manage Metadata Using the Management API) you referenced and assuming a default database connection, a proper request body would look like: