I'm attempting to create a CNAME DNS record using the Vercel SDK.
The docs show that you call vercel.dns.createRecord({}) with a property called https to create a CNAME, but this doesn't work.
Instead, it looks like a propery called requestBody is required:
vercel.dns.createRecord({ domain: 'mydomain.com', teamId: 'my-team-slug', requestBody: { type: 'CNAME', name: 'subdomain', value: 'target.example.com' } })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:
vercel.dns.createRecord({ domain: 'mydomain.com', teamId: 'my-team-slug', type: 'CNAME', name: 'subdomain', value: 'target.example.com' })But this complains that requestBody is required. I've run out of ideas.
How do I use this SDK to create a CNAME?