Form Vault Connection Bad request

Issue with creating Form Flow Vault connection via Flow UI and Management api.

I created a Machine 2 Machine App, granted access to the Management Api.
I’m using from that app the client Id and Client secret.

Through the Ui I get the same error when using the api.

{
    "app_id": "AUTH0",
    "name": "somename",
    "setup": {
        "domain": "<string>",
        "client_id": "<string>",
        "client_secret": "<string>",
        "type": "OAUTH_APP"
    }

this is a valid body, but get error

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "Payload validation error: 'Data does not match any schemas from 'oneOf'' on property setup (Flows Vault Connection configuration).",
  "errorCode": "invalid_body"
}