I’m facing an issue when trying to create a DNS record using the createRecord method. The error says that the name attribute is required, but I am already including it in the request.
const result = await vercel.dns.createRecord({
domain: "my-domain.dev",
teamId: "team_XJxxxxxxxx",
slug: " my-org-slug",
requestBody: {
comment: "testing",
name: "test",
ttl: 60,
type: "A",
value: "03.228.48.138",
})
I’ve tried several different ways, 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."}}