But this complains that missing attribute name is required.
Trawling through the source code, which has many different options for requestBody, the only thing that I could think of, and the only thing that AI could suggest also, was to drop requestBody as follows:
Can you share the documentation you are looking at for this? I am currently looking through this doc but I do not see an example of the createRecord (which itself is probably something that should be there. I will raise this with the SDK team).
Also just to clarify, the teamId is not the slug for your team but the team_12345 from your Team > Settings page.
I do see the requestBody is required, so your first snippet looks correct. I would definitely like to see the errors you are seeing locally if you have screenshots of them?
The domains part of the SDK is relatively new to me, but I am more than happy to take a look at whats up.
I’ve tried several different approaches, but nothing has worked.
I also tried the example in this doc: Create a DNS record - Vercel API Docs, but it throws this error:
Error: API error occurred: {“error”:{“code”:“bad_request”,“message”:“Invalid request: should NOT have additional property https.”}}