Using API, createSite method result with an error

Hey @HadarLetsApp,
You should be able to use Netlify API documentation for that!

It’ll be a PATCH request with this JSON payload:

{ custom_domain: "example.com" } 

And in general, this is our best guide to using our API: [Support Guide] Understanding and using Netlify's API