dnszone_add.go raw

   1  package bunny
   2  
   3  import "context"
   4  
   5  // Add creates a new DNS Zone.
   6  // opts and the non-optional parameters in the struct must be specified for a successful request.
   7  // On success the created DNSZone is returned.
   8  //
   9  // Bunny.net API docs: https://docs.bunny.net/reference/dnszonepublic_add
  10  func (s *DNSZoneService) Add(ctx context.Context, opts *DNSZone) (*DNSZone, error) {
  11  	return resourcePostWithResponse[DNSZone](ctx, s.client, "/dnszone", opts)
  12  }
  13