API v2 Changelog

< Back to Changelog

Create Domains Without Providing an IP Address

Date: June 22, 2018

Tagged In: API v2

Author Andrew Starr-Bochicchio

New Domain resources can now be created via the DigitalOcean v2 API without providing an IP address. The previous behavior, which would automatically create an A record pointing to the apex domain, will be retained for backwards-compatibility when an IP address is provided.

This example demonstrates how to create a new domain without providing an IP address:

curl -X POST -H "Content-Type: application/json" \
    -H "Authorization: Bearer $DIGITALOCEAN_API_TOKEN" \
    -d '{"name":"example.com"}' \

For more information, see the full Domains API documentation.