Skip to content

createRecord fails with “missing attribute name” even when name is provided #57

@Ctroubles

Description

@Ctroubles

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."}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions