Question
How do I find domain record_id using api v2
Hi,
I am using the following api v2 command to create a new A record for users when they register:
curl -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer **KEY**' -d '{"type":"A","name":"**NAME**","data":"46.101.35.92","priority":null,"port":null,"weight":null}' "https://api.digitalocean.com/v2/domains/mydomain.com/records"
If the user decides to delete their account, I need the A record to be removed as well, but this requires me to provide the record id. how do I find the record id of a record using the api?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×