Hi,
In this documentation page: Auth0 Management API v2
the sample JSON shown is:
{
"connection_id": "con_0000000000000001",
"format": "csv",
"limit": 5,
"fields": [
[
{
"name": "user_id"
},
{
"name": "name"
},
{
"name": "email"
},
{
"name": "identities[0].connection",
"export_as": "provider"
},
{
"name": "user_metadata.some_field"
}
]
]
}
However, when trying to use a variation of this with my own auth token, I get back:
{
"statusCode": 400,
"error": "Bad Request",
"message": "Payload validation error: 'Expected type object but found type array' on property fields[0].",
"errorCode": "invalid_body"
}
Looks like the fields array in the sample contains another array but it should contain objects only.