Configure site DNS through API

Hello world,

I鈥檓 trying to configure site DNS through API but it seems that there is no ways to provide the new configuration as request parameter.
Does someone know the process to update DNS configuration through API ?
Is it even possible ?

Sincerely.

[EDIT]
I saw that https://api.netlify.com/api/v1/dns_zones exists but is not described in swagger file (https://open-api.netlify.com/swagger.json).
How can we use this route from go library ? Because this library is generated from swagger file.
Do I have to update the library by hand ? Will you update swagger file then generate go library again ?

Hi @Nigui! You almost found this issue which describes the problem: add dns_zones/yourdomain.com/dns_records call 路 Issue #115 路 netlify/open-api 路 GitHub . So to answer your last question first, someday we will update the swagger file but not sure how soon since you are only the second person to want to use that functionality ever as far as I know :slight_smile:

I鈥檓 not sure how you鈥檙e using swagger, but the API call does work. You can still find and make calls the same way our API does as mentioned here: [Support Guide] Understanding and using Netlify's API