Create invitations to organization and adding Roles in bulk for users in Organization

Hi there!

Trying to send multiple invites using the API: Auth0 Management API v2

Using this template but seems wrong. How can I add multiple entries?

Also, it rejects the Role given, but it is written as per the Org Role.

[
    {
        "inviter": {
            "name": "Tenant Name"
        },
        "invitee": {
            "email": "name@yahoo.com"
        },
        "client_id": "*****",
        "app_metadata": {},
        "user_metadata": {},
        "ttl_sec": 86400,
        "roles": [
            "AsPerOrgRole"
        ],
        "send_invitation_email": true
    },
    {
        "inviter": {
            "name": "Tenant Name"
        },
        "invitee": {
            "email": "name@hotmail.com"
        },
        "client_id": "*****",
        "app_metadata": {},
        "user_metadata": {},
        "ttl_sec": 86400,
        "roles": [
            "AsPerOrgRole"
        ],
        "send_invitation_email": true
    }
]

Error I get:

"message": "Payload validation error: 'Expected type object but found type array'.",
"errorCode": "invalid_body"

I have tried removing the brackets or commas between body samples and still get errors.

Also, is there a method to add multiple users to an Org, including the roles? Cannot find an API for it.

This: Auth0 Management API v2 seems to be for a single user.

Thanks,