I have this JS Code below that creates a subdomain. It deploys it to the Netlify DNS and is successful but it shows the error in the picture below:
fetch('https://api.netlify.com/api/v1/dns_zones/upmeet_me/dns_records', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer abcdefg-123456-1234-1-123456789'
},
body: JSON.stringify({
'hostname': 'enterprise.test.upmeet.me',
'type': 'NETLIFY',
'value': 'https://enterprise--upmeet.netlify.app',
'site_id': 'c79d33dc-7dee-4080-ae3a-28932c68eacf'
})
});