I currently have an issue by trying to create an Oauth2 API credentials with the n8n API.
After following the correct data schema to create the credential, I receive the following error: "request.body.data does not match allOf schema [subschema 0] with 1 error[s]:,request.body.data is not exactly one from [subschema 0],[subschema 1],[subschema 2]".
I am sorry to hear youâre having trouble, unfortunately I am not sure I fully understand the problem. Can you confirm to which service exactly you are trying to connect and perhaps share a screenshot of the error message (to understand its context)?
Hi @MutedJam , thanks, glad to find out about your great product!
For a bit more context, we are trying to create an Oauth2 connection with the endpoint POST /connections.
The goal is that each client has a different connection, so for each new client using our workflow we will create a new connection with this API endpoint (and then following one of these guides Programatically passing credentials into a Workflow).
And the response: "message": "request.body.data does not match allOf schema [subschema 0] with 1 error[s]:,request.body.data is not exactly one from [subschema 0],[subschema 1],[subschema 2]"
Thanks so much for clarifying! Have you checked the response to the GET /api/v1/credentials/schema/oAuth2Api request? In theory, this should contain the required schema for your request.
That said, I havenât tried out this endpoint first hand yet, but have booked some time to take a closer look tomorrow. Iâll report back when I had a chance to test this.
Thanks so much @jsasportas. Unfortunately, even after playing around with this for quite a while now I canât figure out what might be missing here. @RicardoE105 do you have any idea what might be wrong with the above request creating OAuth2 credentials via the REST API?